fix value
This commit is contained in:
parent
9a5fbaaa5f
commit
0a8c94a1e0
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ class JsonDocStatusStorage(DocStatusStorage):
|
|||
|
||||
async def get_status_counts(self) -> dict[str, int]:
|
||||
"""Get counts of documents in each status"""
|
||||
counts = {status: 0 for status in DocStatus}
|
||||
counts = {status.value: 0 for status in DocStatus}
|
||||
for doc in self._data.values():
|
||||
counts[doc["status"]] += 1
|
||||
return counts
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue