get text from db, not rows

This commit is contained in:
b3yond 2018-09-24 22:27:11 +02:00
parent 3b19278774
commit 5efea773b8

View file

@ -283,7 +283,7 @@ schlitz
def get_twitter_token(self):
db.execute("SELECT client_id, client_secret FROM twitter_accounts WHERE user_id = ?;",
(self.uid, ))
return db.cur.fetchall()
return db.cur.fetchone()
def update_telegram_key(self, apikey):
db.execute("UPDATE telegram_accounts SET apikey = ? WHERE user_id = ?;", (apikey, self.uid))