Commit f2a192e4 authored by Francesco Poldi's avatar Francesco Poldi

Update pandas/localtime #500

parent a049e965
......@@ -66,7 +66,7 @@ def update(object, config):
if _type == "tweet":
Tweet = object
day = weekdays[strftime("%A", localtime(Tweet.datetime))]
day = weekdays[strftime("%A", localtime(Tweet.datetime/1000))]
dt = f"{object.datestamp} {object.timestamp}"
_data = {
"id": str(Tweet.id),
......@@ -83,7 +83,7 @@ def update(object, config):
"username": Tweet.username,
"name": Tweet.name,
"day": day,
"hour": hour(Tweet.datetime),
"hour": hour(Tweet.datetime/1000),
"link": Tweet.link,
"retweet": Tweet.retweet,
"nlikes": int(Tweet.likes_count),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment