From 1fa35e7311b25c0e99a15f4b6493d6cd3496d60c Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Mon, 23 Sep 2024 22:10:04 +0300 Subject: [PATCH] Only display one report error --- repologyapp/views/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repologyapp/views/project.py b/repologyapp/views/project.py index 1d3076c3..2ceb46dc 100644 --- a/repologyapp/views/project.py +++ b/repologyapp/views/project.py @@ -536,7 +536,7 @@ def project_report(name: str) -> Response: need_merge=need_merge, need_vuln=need_vuln, comment=comment, - messages=[('danger', f'Could not add report: {error}') for error in errors] + messages=[('danger', f'Could not add report: {error}') for error in errors[:1]] )