From f51339e11bbc50aefb0d2e2bcf6b399f65aee0df Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Sun, 1 Dec 2024 12:10:12 +0100 Subject: [PATCH] [FIX] Month order in alliance stats view (#377) --- CHANGELOG.md | 4 ++++ afat/views/statistics.py | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1915009..19cef821 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,10 @@ Section Order: ### Security --> +### Fixed + +- Month order in alliance stats view (#377) + ## \[3.5.0\] - 2024-11-28 ### Fixed diff --git a/afat/views/statistics.py b/afat/views/statistics.py index bcb64c19..feef72e0 100644 --- a/afat/views/statistics.py +++ b/afat/views/statistics.py @@ -636,6 +636,7 @@ def alliance( # pylint: disable=too-many-statements too-many-branches too-many- character__alliance_id=allianceid, fatlink__created__year=year, ) + .order_by("fatlink__created__month") .values("fatlink__created__month") .annotate(fat_count=Count("id")) )