twitter #2

Merged
s434708 merged 50 commits from twitter into master 2022-06-09 19:42:33 +02:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 77c4fc49d9 - Show all commits

View File

@ -15,7 +15,7 @@ def get_twitter_campaigns():
if not decoded_token:
return "Not authorised!", 401
user_id = decoded_token['uid']
user_id = decoded_token['sub']
twitter_campaigns = TwitterCampaign.query.filter_by(user_id=user_id)
@ -40,7 +40,7 @@ def add_twitter_account():
if not decoded_token:
return "Not authorised!", 401
user_id = decoded_token['uid']
user_id = decoded_token['sub']
content_type = request.headers.get('Content-Type')
if (content_type == 'application/json'):

View File

@ -11,7 +11,7 @@ def get_twitter_accounts():
if not decoded_token:
return "Not authorised!", 401
user_id = decoded_token['uid']
user_id = decoded_token['sub']
twitter_accounts = TwitterAccount.query.filter_by(user_id=user_id)
@ -33,7 +33,7 @@ def add_twitter_account():
if not decoded_token:
return "Not authorised!", 401
user_id = decoded_token['uid']
user_id = decoded_token['sub']
content_type = request.headers.get('Content-Type')
if (content_type == 'application/json'):