Skip to content

Commit

Permalink
fix filter
Browse files Browse the repository at this point in the history
  • Loading branch information
unStatiK committed Dec 24, 2024
1 parent 94e3ecc commit a4fe5ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/rating/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_external_rating_details(rating, request, year=None, month=None, day=None
last_game_date_filter = rating_date - relativedelta(years=3)
rating_results = (
ExternalRatingDelta.objects.filter(
rating=rating, date=rating_date, last_game_date__lte=last_game_date_filter
rating=rating, date=rating_date, last_game_date__gte=last_game_date_filter
)
.prefetch_related("player")
.order_by("-base_rank")
Expand Down

0 comments on commit a4fe5ce

Please sign in to comment.