From c67422d56959126e65b0bd890dc8ce6abe3c61e1 Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 28 Apr 2025 22:21:07 +0100 Subject: [PATCH] Update fetched_on #196 --- vxApi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vxApi.py b/vxApi.py index d8e861c..fb2d9f7 100644 --- a/vxApi.py +++ b/vxApi.py @@ -16,7 +16,7 @@ def getApiUserResponse(user): "tweet_count": user["statuses_count"], "created_at": user["created_at"], "protected": user["protected"], - "fetched_on": datetime.now().timestamp(), + "fetched_on": int(datetime.now().timestamp()), } def getApiResponse(tweet,include_txt=False,include_rtf=False): @@ -250,7 +250,7 @@ def getApiResponse(tweet,include_txt=False,include_rtf=False): "lang": lang, "replyingTo": replyingTo, "replyingToID": replyingToID, - "fetched_on": datetime.now().timestamp(), + "fetched_on": int(datetime.now().timestamp()), } try: apiObject["date_epoch"] = int(datetime.strptime(tweetL["created_at"], "%a %b %d %H:%M:%S %z %Y").timestamp())