Skip to content

Commit

Permalink
fix show latest report by using correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
stitch committed Apr 26, 2024
1 parent 4c09d19 commit 4d7b095
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def get_latest_report_id_from_list_and_type(urllist_id: int, report_type: str =
if report_type in {"web", "mail"}:
report = report.filter(report_type=report_type)

found_report = report.first()
found_report = report.last()

return (
{'latest_report_public_report_code': found_report.public_report_code}
Expand Down

0 comments on commit 4d7b095

Please sign in to comment.