diff --git a/BotDatabase.py b/BotDatabase.py index d2fd5c1..17df024 100644 --- a/BotDatabase.py +++ b/BotDatabase.py @@ -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