This commit is contained in:
darkclip 2026-05-31 01:13:02 +08:00
parent 50c7d1ae92
commit 82d7f6dcfd
Signed by: hl
GPG Key ID: A948B2AA5A5D3BDB

View File

@ -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'],