Update fetched_on #196
This commit is contained in:
parent
fa979086c9
commit
c67422d569
4
vxApi.py
4
vxApi.py
@ -16,7 +16,7 @@ def getApiUserResponse(user):
|
|||||||
"tweet_count": user["statuses_count"],
|
"tweet_count": user["statuses_count"],
|
||||||
"created_at": user["created_at"],
|
"created_at": user["created_at"],
|
||||||
"protected": user["protected"],
|
"protected": user["protected"],
|
||||||
"fetched_on": datetime.now().timestamp(),
|
"fetched_on": int(datetime.now().timestamp()),
|
||||||
}
|
}
|
||||||
|
|
||||||
def getApiResponse(tweet,include_txt=False,include_rtf=False):
|
def getApiResponse(tweet,include_txt=False,include_rtf=False):
|
||||||
@ -250,7 +250,7 @@ def getApiResponse(tweet,include_txt=False,include_rtf=False):
|
|||||||
"lang": lang,
|
"lang": lang,
|
||||||
"replyingTo": replyingTo,
|
"replyingTo": replyingTo,
|
||||||
"replyingToID": replyingToID,
|
"replyingToID": replyingToID,
|
||||||
"fetched_on": datetime.now().timestamp(),
|
"fetched_on": int(datetime.now().timestamp()),
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
apiObject["date_epoch"] = int(datetime.strptime(tweetL["created_at"], "%a %b %d %H:%M:%S %z %Y").timestamp())
|
apiObject["date_epoch"] = int(datetime.strptime(tweetL["created_at"], "%a %b %d %H:%M:%S %z %Y").timestamp())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user