File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff 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]" )
You can’t perform that action at this time.
0 commit comments