mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
🐛 — Fix get_severity_counts returned result
This commit is contained in:
parent
e199b4932c
commit
88b1ca4d9e
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ async def get_severity_counts(db: Session) -> dict:
|
|||
counts_dict = dict(task_counts_by_severity)
|
||||
for key in ("ok", "warning", "critical"):
|
||||
counts_dict.setdefault(key, 0)
|
||||
return task_counts_by_severity
|
||||
return counts_dict
|
||||
|
||||
|
||||
async def remove_old_results(db: Session, max_results: int):
|
||||
|
|
Loading…
Reference in a new issue