Skip to content

Commit

Permalink
Fix order_by for report by month
Browse files Browse the repository at this point in the history
  • Loading branch information
HeySlava committed Jan 1, 2024
1 parent f4aabe6 commit 5046eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/services/report_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_report_by_month(
~Expense.is_replenishment,
)
.group_by(Expense.user_id, by_month_year, Expense.unit)
.order_by(by_month_year)
.order_by(Expense.cdate_tz)
.subquery()
)

Expand Down

0 comments on commit 5046eb3

Please sign in to comment.