Skip to content

Commit 7333816

Browse files
author
dori
committed
fix: s "str" has no attribute "in_" [attr-defined]
1 parent 715aeda commit 7333816

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mcp_as_a_judge/db/cleanup_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def get_least_recently_used_sessions(self, limit: int) -> list[str]:
135135
)
136136

137137
results = session.exec(lru_stmt).all()
138-
return [result.session_id for result in results]
138+
return [result[0] for result in results]
139139

140140
def delete_sessions(self, session_ids: list[str]) -> int:
141141
"""
@@ -153,7 +153,7 @@ def delete_sessions(self, session_ids: list[str]) -> int:
153153
with Session(self.engine) as session:
154154
# Count records before deletion for logging
155155
count_stmt = select(ConversationRecord).where(
156-
ConversationRecord.session_id.in_(session_ids)
156+
ConversationRecord.session_id.in_(session_ids) # type: ignore[attr-defined]
157157
)
158158
records_to_delete = session.exec(count_stmt).all()
159159
delete_count = len(records_to_delete)

0 commit comments

Comments
 (0)