added defaults for now.

reworked tasks and pending rewards
This commit is contained in:
2025-12-15 15:08:27 -05:00
parent c375c34ed2
commit 3b3d14e454
7 changed files with 105 additions and 4 deletions

View File

@@ -512,7 +512,7 @@ def reward_status(id):
#check to see if this reward id and child id is in the pending rewards db if so set its redeeming flag to true
pending_query = Query()
pending = pending_reward_db.get((pending_query.child_id == child.id) & (pending_query.reward_id == reward.id))
status = RewardStatus(reward.id, reward.name, points_needed, reward.cost, pending, reward.image_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'])