Skip to content

Commit

Permalink
Removed elab_date from top_players.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhiiva committed Jun 26, 2021
1 parent d28a423 commit 33e2bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agagd/agagd_core/views/beta/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ def frontpage(request):
top_10_dan = (
top_10_dan_kyu.filter(rating__gt=0)
.filter(elab_date__gte=datetime.datetime.now() - datetime.timedelta(weeks=260))
.order_by("-elab_date", "-rating")[:10]
.order_by("-rating")[:10]
)
top_10_kyu = (
top_10_dan_kyu.filter(rating__lt=0)
.filter(elab_date__gte=datetime.datetime.now() - datetime.timedelta(weeks=260))
.order_by("-elab_date", "-rating")[:10]
.order_by("-rating")[:10]
)

# Index Tables
Expand Down

0 comments on commit 33e2bba

Please sign in to comment.