修正失败的任务总积分同步
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user