Skip to content

Commit

Permalink
Fix sum usage problem
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurswag committed Feb 28, 2024
1 parent ef4fd62 commit 318f9ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 318f9ca

Please sign in to comment.