diff --git a/backend/core/models.py b/backend/core/models.py index cb430a5c2..12be40c1b 100644 --- a/backend/core/models.py +++ b/backend/core/models.py @@ -973,7 +973,7 @@ def quality_check(self) -> dict: "errors": errors_lst, "warnings": warnings_lst, "info": info_lst, - "count": len(errors_lst + warnings_lst + info_lst), + "count": sum([len(errors_lst), len(warnings_lst), len(info_lst)]), } return findings @@ -1399,7 +1399,7 @@ def quality_check(self) -> dict: "errors": errors_lst, "warnings": warnings_lst, "info": info_lst, - "count": len(errors_lst + warnings_lst + info_lst), + "count": sum([len(errors_lst), len(warnings_lst), len(info_lst)]), } return findings diff --git a/frontend/src/routes/(app)/x-rays/+page.svelte b/frontend/src/routes/(app)/x-rays/+page.svelte index d38f06be2..943da66ba 100644 --- a/frontend/src/routes/(app)/x-rays/+page.svelte +++ b/frontend/src/routes/(app)/x-rays/+page.svelte @@ -11,7 +11,7 @@ types.forEach((type) => { result[type] = Object.entries(item.objects).reduce((acc, [key, value]) => { - if (key !== 'object') { + if (key !== 'object') { // if key === 'quality_check' acc = [...acc, ...value.quality_check[type]]; } return acc; @@ -84,7 +84,7 @@