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}%)')