add epoch date
This commit is contained in:
parent
694baf99af
commit
35d4b9271f
@ -142,7 +142,10 @@ def twitfix(sub_path):
|
|||||||
"mediaURLs": media,
|
"mediaURLs": media,
|
||||||
"hashtags": hashtags
|
"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:
|
if tweet is None:
|
||||||
abort(500)
|
abort(500)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user