We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ac0b74 commit 8e29511Copy full SHA for 8e29511
1 file changed
backend/apps/datasource/crud/table.py
@@ -81,7 +81,7 @@ def save_table_embedding(session: Session, ids: List[int]):
81
# table_schema.append(schema_table)
82
emb = json.dumps(model.embed_query(schema_table))
83
84
- stmt = update(CoreTable).where(and_(CoreTable.id == id)).values(embedding=emb)
+ stmt = update(CoreTable).where(and_(CoreTable.id == _id)).values(embedding=emb)
85
session.execute(stmt)
86
session.commit()
87
0 commit comments