fixed db scheme error

This commit is contained in:
b3yond 2018-04-14 18:12:55 +02:00
parent 24beedf467
commit 0b41b43421

View file

@ -142,7 +142,7 @@ class User(object):
def save_twitter_token(self, access_token, access_token_secret): def save_twitter_token(self, access_token, access_token_secret):
db.execute( db.execute(
"INSERT INTO twitter_accounts(user_id, access_token_key, access_token_secret) VALUES(?, ?, ?);", "INSERT INTO twitter_accounts(user_id, client_id, client_secret) VALUES(?, ?, ?);",
(self.uid, access_token, access_token_secret)) (self.uid, access_token, access_token_secret))
db.commit() db.commit()