Update main.py
This commit is contained in:
parent
1c689d3194
commit
15d48372db
2
main.py
2
main.py
@ -4545,6 +4545,8 @@ async def v1_gauntletreward_get(
|
|||||||
if loss_max is not None:
|
if loss_max is not None:
|
||||||
all_rewards = all_rewards.where(GauntletReward.loss_max == loss_max)
|
all_rewards = all_rewards.where(GauntletReward.loss_max == loss_max)
|
||||||
|
|
||||||
|
all_rewards = all_rewards.order_by(GauntletReward.win_num, GauntletReward.loss_max)
|
||||||
|
|
||||||
return_val = {'count': all_rewards.count(), 'rewards': []}
|
return_val = {'count': all_rewards.count(), 'rewards': []}
|
||||||
for x in all_rewards:
|
for x in all_rewards:
|
||||||
return_val['rewards'].append(model_to_dict(x))
|
return_val['rewards'].append(model_to_dict(x))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user