From ab62ecb877ecf5d149355dccea0d73c562d71d9e Mon Sep 17 00:00:00 2001 From: Kumi Date: Thu, 7 Dec 2023 16:31:19 +0100 Subject: [PATCH] fix: incorrect variable name use in newroom tool --- src/gptbot/tools/newroom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gptbot/tools/newroom.py b/src/gptbot/tools/newroom.py index 6f37eba..ed61d3f 100644 --- a/src/gptbot/tools/newroom.py +++ b/src/gptbot/tools/newroom.py @@ -39,7 +39,7 @@ class Newroom(BaseTool): with closing(self.bot.database.cursor()) as cursor: cursor.execute( - "SELECT space_id FROM user_spaces WHERE user_id = ? AND active = TRUE", (event.sender,)) + "SELECT space_id FROM user_spaces WHERE user_id = ? AND active = TRUE", (self.user,)) space = cursor.fetchone() if space: