Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
winprn committed Sep 17, 2023
1 parent eacf5dc commit 793c437
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion judge/views/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def get_context_data(self, **kwargs):
top_monthly = cache.get('top_monthly' + str(current_month))
contests = Contest.objects.filter(is_rated=True)[:3]
if not top_monthly:
contest_in_current_month = Contest.objects.filter(start_time__year=current_year, start_time__month=current_month, is_rated=True)
contest_in_current_month = Contest.objects.filter(start_time__year=current_year,
start_time__month=current_month, is_rated=True)
monthly_perf = {}
if contest_in_current_month.exists():
for contest in contest_in_current_month:
Expand Down

0 comments on commit 793c437

Please sign in to comment.