Skip to content

Commit

Permalink
Merge pull request #22 from HeySlava/correct_order
Browse files Browse the repository at this point in the history
Fix order_by for report by month
  • Loading branch information
HeySlava authored Jan 1, 2024
2 parents f4aabe6 + 5046eb3 commit f42c66b
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 f42c66b

Please sign in to comment.