diff --git a/utils.py b/utils.py index 6a9d140..ce84c1a 100644 --- a/utils.py +++ b/utils.py @@ -45,6 +45,9 @@ def has_only_1_comment(commits: PaginatedList[Commit], comments: PaginatedList[P ): return False + if comments.totalCount != 1: + return False + commit_dates = [commit.commit.author.date for commit in tqdm(commits, total=commits.totalCount, desc="Extracting date from commits", leave=False)] commit_dates.sort()