twitter #2

Merged
s434708 merged 50 commits from twitter into master 2022-06-09 19:42:33 +02:00
Showing only changes of commit 611f7a02d9 - Show all commits

View File

@ -94,10 +94,6 @@ def add_twitter_campaign():
user_input = request_json['user_input'], user_input = request_json['user_input'],
) )
db.session.add(twitter_campaign)
db.session.flush()
db.session.refresh()
twitter_campaign_post = TwitterPost( twitter_campaign_post = TwitterPost(
id = str(uuid4()), id = str(uuid4()),
campaign_id = twitter_campaign.id, campaign_id = twitter_campaign.id,
@ -106,6 +102,7 @@ def add_twitter_campaign():
twitter_post_id = response['id'] twitter_post_id = response['id']
) )
db.session.add(twitter_campaign)
db.session.add(twitter_campaign_post) db.session.add(twitter_campaign_post)
db.session.commit() db.session.commit()