Try this, may be helps. (I can't test code now, sorry)
This commit is contained in:
parent
94cf102c0b
commit
4fde0e8efd
|
@ -52,8 +52,8 @@ class SQLiteDatabaseRepository(AbstractDatabaseRepository):
|
||||||
|
|
||||||
self.conn.row_factory = self._namedtuple_factory
|
self.conn.row_factory = self._namedtuple_factory
|
||||||
self.cur_userdata = self.conn.execute(
|
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 = ?",
|
"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,),
|
(user_id,)
|
||||||
)
|
)
|
||||||
|
|
||||||
self.userdata = self.cur_userdata.fetchone()
|
self.userdata = self.cur_userdata.fetchone()
|
||||||
|
|
Reference in a new issue