fix #131 bib health check: remove invalid limit kwarg
Store.list_items() doesn't accept limit — slice result instead.
This commit is contained in:
@@ -51,7 +51,7 @@ def _check_bib() -> ServiceCheck:
|
||||
from bib.store import Store
|
||||
|
||||
store = Store(str(bib_path))
|
||||
count = len(store.list_items(limit=1))
|
||||
count = len(store.list_items()[:1])
|
||||
return ServiceCheck(name="bib", status="ok", detail=f"{count}+ items")
|
||||
except Exception as e:
|
||||
return ServiceCheck(name="bib", status="degraded", detail=str(e))
|
||||
|
||||
Reference in New Issue
Block a user