mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-05 05:28:13 +02:00
forgot to actually check whether the ammount of
comments was 1, now it's fixed
This commit is contained in:
3
utils.py
3
utils.py
@ -45,6 +45,9 @@ def has_only_1_comment(commits: PaginatedList[Commit], comments: PaginatedList[P
|
|||||||
):
|
):
|
||||||
return False
|
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 = [commit.commit.author.date for commit in tqdm(commits, total=commits.totalCount, desc="Extracting date from commits", leave=False)]
|
||||||
commit_dates.sort()
|
commit_dates.sort()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user