diff --git a/app/routers_v2/refractor.py b/app/routers_v2/refractor.py index ba9c4c5..c74ba8b 100644 --- a/app/routers_v2/refractor.py +++ b/app/routers_v2/refractor.py @@ -211,7 +211,7 @@ async def list_card_states( if evaluated_only: query = query.where(RefractorCardState.last_evaluated_at.is_null(False)) - total = query.count() + total = query.count() or 0 items = [] for state in query.offset(offset).limit(limit): player_name = None