From ba1b597c73a3f146227d11253692920c2c3fe08d Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Sun, 29 Oct 2023 21:27:45 +0000 Subject: [PATCH] fix(report): sort countries by risk --- app/portal/report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/portal/report.py b/app/portal/report.py index 8ec0366..511c396 100644 --- a/app/portal/report.py +++ b/app/portal/report.py @@ -139,5 +139,5 @@ def report_blocks() -> ResponseReturnValue: return render_template("report_blocks.html.j2", blocked_today=blocked_today, origins=origins_with_deprecations, - countries=countries_report(), + countries=sorted(countries_report(), key=lambda c: c[0].risk_level), )