Skip to content

Commit 935ee89

Browse files
author
dori
committed
feat: improve memory cleanup when plan approve
1 parent e0c2d35 commit 935ee89

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/mcp_as_a_judge/db/providers/sqlite_provider.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,7 @@ async def delete_previous_plan(self, session_id: str) -> None:
348348
# Use the table name from ConversationRecord to avoid type issues
349349
table_name = ConversationRecord.__tablename__
350350
table = SQLModel.metadata.tables[table_name]
351-
delete_stmt = delete(table).where(
352-
table.c.id.in_(record_ids_to_delete)
353-
)
351+
delete_stmt = delete(table).where(table.c.id.in_(record_ids_to_delete))
354352
# Use the underlying SQLAlchemy session for delete operations
355353
session.execute(delete_stmt)
356354
session.commit()

0 commit comments

Comments
 (0)