Skip to content

Commit

Permalink
fix(clans): order by asc created date, not desc in 10 day report stat…
Browse files Browse the repository at this point in the history
…istic
  • Loading branch information
Hojagulyyev committed Dec 7, 2023
1 parent dd6291b commit 349c69b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/accounts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 349c69b

Please sign in to comment.