Skip to content

Commit

Permalink
fixed report list routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Squared committed Apr 2, 2023
1 parent 99c6a10 commit 9482347
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def report_list_all_v1(owner=None) -> ReportIDs:
report_ids = []
for report in Reports.select():
if owner == None and report.owner == None:
report_ids.append(report)
report_ids.append(report.id)
elif report.owner == owner:
report_ids.append(report)
report_ids.append(report.id)

return ReportIDs(report_ids=report_ids)

Expand All @@ -55,9 +55,9 @@ def report_list_by_v1(order_by: OrderBy, owner=None) -> ReportIDs:
report_ids = []
for report in Reports.select().order_by(order):
if owner == None and report.owner == None:
report_ids.append(report)
report_ids.append(report.id)
elif report.owner == owner:
report_ids.append(report)
report_ids.append(rereport.idport)

return ReportIDs(report_ids=report_ids)

Expand Down

0 comments on commit 9482347

Please sign in to comment.