Skip to content

Commit

Permalink
Merge pull request #204 from EarthSchlange/removed_elab_date_from_top…
Browse files Browse the repository at this point in the history
…_players

Removed elab_date from top_players.
  • Loading branch information
Michael Hiiva authored Jun 26, 2021
2 parents d28a423 + 33e2bba commit de90bf3
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 de90bf3

Please sign in to comment.