浏览代码

fix: incorrect variable name use in newroom tool

Kumi 11 月之前
父节点
当前提交
ab62ecb877
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/gptbot/tools/newroom.py

+ 1 - 1
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: