From 349c69b6a9f4a77aec5172caa7b6f9fb2a62ecdc Mon Sep 17 00:00:00 2001 From: Hojagulyyev Date: Thu, 7 Dec 2023 20:34:46 +0500 Subject: [PATCH] fix(clans): order by asc created date, not desc in 10 day report statistic --- apps/accounts/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/accounts/models.py b/apps/accounts/models.py index 08a1e55..4898b3d 100644 --- a/apps/accounts/models.py +++ b/apps/accounts/models.py @@ -20,7 +20,7 @@ def __str__(self): def get_xp_daily_report(self): return [ diary.get_earned_xp() - for diary in self.diaries.order_by("-created_date")[:10] + for diary in self.diaries.order_by("created_date")[:10] ] def get_full_name(self):