made some changes for testing (UI)

This commit is contained in:
2025-12-16 17:07:39 -05:00
parent 946d7d6003
commit fca1626921
3 changed files with 10 additions and 1 deletions

View File

@@ -515,7 +515,7 @@ def reward_status(id):
status = RewardStatus(reward.id, reward.name, points_needed, reward.cost, pending is not None, reward.image_id)
statuses.append(status.to_dict())
statuses.sort(key=lambda s: s['cost'])
statuses.sort(key=lambda s: (not s['redeeming'], s['cost']))
return jsonify({'reward_status': statuses}), 200