use correct var for length

This commit is contained in:
Josh Hawkins 2024-10-13 16:20:17 -05:00
parent 97097556c7
commit af528c9c1d

View File

@ -156,7 +156,7 @@ class Embeddings:
"""
INSERT OR REPLACE INTO vec_thumbnails(id, thumbnail_embedding)
VALUES {}
""".format(", ".join(["(?, ?)"] * len(items))),
""".format(", ".join(["(?, ?)"] * len(ids))),
items,
)
return embeddings
@ -187,7 +187,7 @@ class Embeddings:
"""
INSERT OR REPLACE INTO vec_descriptions(id, description_embedding)
VALUES {}
""".format(", ".join(["(?, ?)"] * len(items))),
""".format(", ".join(["(?, ?)"] * len(ids))),
items,
)