Try this, may be helps. (I can't test code now, sorry)

This commit is contained in:
localhost_frssoft 2023-01-15 03:45:48 +03:00
parent 94cf102c0b
commit 4fde0e8efd
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ class SQLiteDatabaseRepository(AbstractDatabaseRepository):
self.conn.row_factory = self._namedtuple_factory
self.cur_userdata = self.conn.execute(
"SELECT user_id AS user_id, first_name AS first_name, last_name AS last_name, username AS username, avatar_hash AS avatar_hash FROM platforms_users WHERE user_id = ?",
(user_id,),
"SELECT user_id AS user_id, first_name AS first_name, last_name AS last_name, username AS username, avatar_hash AS avatar_hash FROM platforms_users WHERE user_id = (?)",
(user_id,)
)
self.userdata = self.cur_userdata.fetchone()