add epoch date

This commit is contained in:
Dylan 2023-07-12 21:15:41 +01:00
parent 694baf99af
commit 35d4b9271f

View File

@ -142,7 +142,10 @@ def twitfix(sub_path):
"mediaURLs": media,
"hashtags": hashtags
}
try:
apiObject["date_epoch"] = int(datetime.strptime(tweetL["created_at"], "%a %b %d %H:%M:%S %z %Y").timestamp())
except:
pass
if tweet is None:
abort(500)