修正失败的任务总积分同步

This commit is contained in:
2026-06-03 17:45:34 +08:00
parent 846eaa0eb0
commit 71dbf01fc8
3 changed files with 54 additions and 9 deletions
+2 -2
View File
@@ -758,13 +758,13 @@ async def list_credit_ratios_grouped(
):
result = await db.execute(select(CreditRatio))
ratios = result.scalars().all()
grouped = {}
for ratio in ratios:
if ratio.gen_type not in grouped:
grouped[ratio.gen_type] = []
grouped[ratio.gen_type].append(CreditRatioOut.model_validate(ratio))
return grouped