Skip to content

Commit

Permalink
Update statistics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tnick1502 committed May 29, 2024
1 parent 0135c60 commit bf657ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/services/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async def get_by_date(self, user_id: int, month: Optional[int] = None, year: Opt
tables.Reports.id == tables.Statistics.report_id,
isouter=True
).
filter_by(*filters).
filter(*filters).
offset(offset).
limit(limit)
)
Expand Down Expand Up @@ -69,7 +69,7 @@ async def count(self, user_id: int, month: Optional[int] = None, year: Optional[
tables.Reports.id == tables.Statistics.report_id,
isouter=True
).
filter_by(*filters)
filter(*filters)
)
count = res.scalar_one()

Expand Down

0 comments on commit bf657ce

Please sign in to comment.