From 318f9ca2b2afd525c8fe98966cc66db8585a312c Mon Sep 17 00:00:00 2001 From: monsieurswag Date: Wed, 28 Feb 2024 16:29:58 +0100 Subject: [PATCH] Fix sum usage problem --- backend/core/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/core/models.py b/backend/core/models.py index 679693fa0..95283c143 100644 --- a/backend/core/models.py +++ b/backend/core/models.py @@ -610,7 +610,7 @@ def quality_check(self) -> dict: "errors": errors_lst, "warnings": warnings_lst, "info": info_lst, - "count": sum(len(errors_lst), len(warnings_lst), len(info_lst)), + "count": sum([len(errors_lst), len(warnings_lst), len(info_lst)]), } return findings @@ -1389,7 +1389,7 @@ def quality_check(self) -> dict: "errors": errors_lst, "warnings": warnings_lst, "info": info_lst, - "count": sum(len(errors_lst), len(warnings_lst), len(info_lst)), + "count": sum([len(errors_lst), len(warnings_lst), len(info_lst)]), } return findings