Gauntlet Reward query update

This commit is contained in:
Cal Corum 2023-03-28 20:54:56 -05:00
parent 8208e7d9d1
commit bd4af6e7fa

View File

@ -4543,7 +4543,7 @@ async def v1_gauntletreward_get(
if win_num is not None:
all_rewards = all_rewards.where(GauntletReward.win_num == win_num)
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.loss_max, GauntletReward.win_num)