fix value

This commit is contained in:
Yannick Stephan
2025-02-16 14:51:24 +01:00
parent 9a5fbaaa5f
commit 0a8c94a1e0

View File

@@ -39,7 +39,7 @@ class JsonDocStatusStorage(DocStatusStorage):
async def get_status_counts(self) -> dict[str, int]: async def get_status_counts(self) -> dict[str, int]:
"""Get counts of documents in each status""" """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(): for doc in self._data.values():
counts[doc["status"]] += 1 counts[doc["status"]] += 1
return counts return counts