From 115e275479dca6e74028ca289cf805c962216db0 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Fri, 14 Mar 2025 09:48:57 +0100 Subject: [PATCH] forgot to actually check whether the ammount of comments was 1, now it's fixed --- utils.py | 3 +++ 1 file changed, 3 insertions(+) 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()