Skip to content

Commit

Permalink
Fix setthread not working properly
Browse files Browse the repository at this point in the history
Update this command to properly look up and fix the object
  • Loading branch information
SocksTheWolf committed Dec 7, 2024
1 parent 2d1eb3b commit cf3bf7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BotDatabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def SetEvidenceThread(self, TargetId:int, ThreadId:int):
if (not self.DoesBanExist(TargetId)):
return

stmt = select(Ban).where(Ban.id==TargetId)
stmt = select(Ban).where(Ban.discord_user_id==TargetId)
if (stmt is None):
return

Expand Down

0 comments on commit cf3bf7c

Please sign in to comment.