Add a comment about if totalReplyCount > 0 condition

This commit is contained in:
Benjamin Loison 2023-07-05 23:20:15 +02:00
parent 0dc0cc45fc
commit 97750eb498
Signed by: Benjamin_Loison
SSH Key Fingerprint: SHA256:BtnEgYTlHdOg1u+RmYcDE0mnfz1rhv5dSbQ2gyxW8B8

View File

@ -44,6 +44,7 @@ while True:
break
commentsNextPageToken = commentsData['nextPageToken']
else:
# This condition is to manage properly `item`s without `replies` entry.
if totalReplyCount > 0:
for comment in item['replies']['comments']:
treatComment(comment)