fix get twitter users

This commit is contained in:
Łukasz Jędyk 2022-01-24 23:26:55 +01:00
parent a295309398
commit 9af91e3760
2 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,6 @@ def create_app():
twitter_db.init_app(app) twitter_db.init_app(app)
campaign_db.init_app(app) campaign_db.init_app(app)
twitter_db.drop_all(app=app)
twitter_db.create_all(app=app) twitter_db.create_all(app=app)
campaign_db.drop_all(app=app) campaign_db.drop_all(app=app)
campaign_db.create_all(app=app) campaign_db.create_all(app=app)

View File

@ -13,7 +13,7 @@ def get_twitter_accounts():
for account in twitter_accounts: for account in twitter_accounts:
account_data = {} account_data = {}
account_data['twitter_user_id'] = account.twitter_user_id account_data['twitter_account_id'] = account.twitter_account_id
account_data['username'] = account.username account_data['username'] = account.username
accounts.append(account_data) accounts.append(account_data)