Fixed models, frontend start
This commit is contained in:
@@ -46,12 +46,12 @@ class twitter_bot(threading.Thread):
|
||||
|
||||
# preparing tweet
|
||||
new_tweet = Tweet()
|
||||
new_tweet.icon = None
|
||||
new_tweet.feed = feed
|
||||
new_tweet.text = current.title
|
||||
|
||||
if 'published' in current:
|
||||
new_tweet.date_time = parser.parse(current.published)
|
||||
elif 'upddated' in current:
|
||||
elif 'updated' in current:
|
||||
new_tweet.date_time = parser.parse(current.updated)
|
||||
else:
|
||||
new_tweet.date_time = datetime.now()
|
||||
|
||||
Reference in New Issue
Block a user