diff --git a/main.py b/main.py index cb1a5ac..631ff48 100644 --- a/main.py +++ b/main.py @@ -984,7 +984,7 @@ async def get_aggregate(batch_id: int | None = Query(None)): 'performer': prog['performer'], 'category': prog['category'], 'avg_score': round(stat['avg_score'], 3) - if stat.get('avg_score') + if stat['avg_score'] is not None else None, 'max_score': stat['max_score'], 'min_score': stat['min_score'],