From 15d48372db50fbf1dd31617d7249998679819748 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Thu, 23 Mar 2023 11:29:48 -0500 Subject: [PATCH] Update main.py --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 2fdc248..8208c3e 100644 --- a/main.py +++ b/main.py @@ -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))