This commit is contained in:
2026-05-11 04:32:49 -06:00
parent ee84a0abe3
commit c9751c095f

View File

@@ -570,9 +570,9 @@ class TopACTrendAPI(APIView):
try: try:
until_year = int(request.GET.get("until_year", current_year)) until_year = int(request.GET.get("until_year", current_year))
if until_year < since_year or until_year > current_year: if until_year < since_year or until_year > current_year:
until_year = current_year until_year = current_year - 1
except (TypeError, ValueError): except (TypeError, ValueError):
until_year = current_year until_year = current_year - 1
try: try:
min_per_year = int(request.GET.get("min_per_year", 100)) min_per_year = int(request.GET.get("min_per_year", 100))