Update main.py

This commit is contained in:
Cal Corum 2023-03-23 11:29:48 -05:00
parent 1c689d3194
commit 15d48372db

View File

@ -4545,6 +4545,8 @@ async def v1_gauntletreward_get(
if loss_max is not None:
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': []}
for x in all_rewards:
return_val['rewards'].append(model_to_dict(x))