Skip to content

Commit df8c99f

Browse files
author
extreme4all
committed
modified: bases/bot_detector/api_public/src/app/repositories/feedback.py
1 parent 66f2847 commit df8c99f

File tree

1 file changed

+1
-2
lines changed
  • bases/bot_detector/api_public/src/app/repositories

1 file changed

+1
-2
lines changed

bases/bot_detector/api_public/src/app/repositories/feedback.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,14 @@ async def insert_feedback(self, feedback: FeedbackInput) -> tuple[bool, str]:
4141

4242
async with self.session:
4343
result: AsyncResult = await self.session.execute(sql_select)
44-
result = result.first()
44+
result = result.mappings().first()
4545

4646
# check if voter exists
4747
if not result:
4848
logger.info({"voter_does_not_exist": FeedbackInput})
4949
await self.session.rollback()
5050
return False, "voter_does_not_exist"
5151

52-
print(result)
5352
voter_id = result["id"]
5453
sql_dupe_check = sql_dupe_check.where(dbFeedback.voter_id == voter_id)
5554

0 commit comments

Comments
 (0)