Skip to content

Commit f0f7dba

Browse files
committed
undercount totalpr fixed
1 parent 00b4614 commit f0f7dba

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

website/views/project.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2210,17 +2210,14 @@ def gsoc_pr_report(request):
22102210
end_date = timezone.make_aware(datetime(year, 10, 1))
22112211

22122212
repos_qs = (
2213-
GitHubIssue.objects.select_related("repo", "contributor")
2214-
.filter(
2213+
GitHubIssue.objects.filter(
22152214
type="pull_request",
22162215
is_merged=True,
22172216
merged_at__gte=start_date,
2218-
merged_at__lte=end_date,
2217+
merged_at__lt=end_date,
22192218
)
22202219
.exclude(merged_at__isnull=True)
2221-
# remove NULL contributors BEFORE bot filters
2222-
.exclude(contributor__isnull=True)
2223-
# Existing bot exclusion (now safe)
2220+
# Exclude bots when contributor data exists; keep NULL contributors so PR totals stay accurate.
22242221
.exclude(
22252222
Q(contributor__contributor_type__iexact="Bot")
22262223
| Q(contributor__name__iendswith="[bot]")

0 commit comments

Comments
 (0)