Add a note about the timing percentage of findLatestTreatedCommentsForChannelsBeingTreated.py
going backward
This commit is contained in:
parent
71e4bd95a9
commit
3758405f52
@ -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}%)')
|
||||
|
Loading…
Reference in New Issue
Block a user