From 3758405f52f2244ad59d2b451b2c9757655c0736 Mon Sep 17 00:00:00 2001 From: Benjamin Loison Date: Sat, 7 Jan 2023 15:35:12 +0100 Subject: [PATCH] Add a note about the timing percentage of `findLatestTreatedCommentsForChannelsBeingTreated.py` going backward --- findLatestTreatedCommentsForChannelsBeingTreated.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/findLatestTreatedCommentsForChannelsBeingTreated.py b/findLatestTreatedCommentsForChannelsBeingTreated.py index f6494cd..9076348 100644 --- a/findLatestTreatedCommentsForChannelsBeingTreated.py +++ b/findLatestTreatedCommentsForChannelsBeingTreated.py @@ -26,7 +26,7 @@ for channelId in list(os.walk('.'))[1]: data = json.loads(content) channelCreationDate = data['items'][0]['snippet']['publishedAt'] #print(channelCreationDate) - # Timing percentage not taking into account the not uniform in time distribution of comments. + # Timing percentage not taking into account the not uniform in time distribution of comments. Note that in the case of the last request is to list replies to a comment, the percentage might goes a bit backward, as replies are posted after the initial comment. currentTimestamp = int(time.time()) timingPercentage = round(100 * (currentTimestamp - getTimestampFromDateString(latestTreatedCommentDate)) / (currentTimestamp - getTimestampFromDateString(channelCreationDate)), 3) print(f'{channelId} {latestTreatedCommentDate} / {channelCreationDate} ({timingPercentage}%)')