From a40776f55dc9483b29b704617e9370a084c5fd93 Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Mon, 15 Dec 2025 15:14:19 -0500 Subject: [PATCH] added defaults for now. reworked tasks and pending rewards --- db/default.py | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/db/default.py b/db/default.py index ae6cda4..6066885 100644 --- a/db/default.py +++ b/db/default.py @@ -86,18 +86,18 @@ def createDefaultTasks(): """Create default tasks if none exist.""" if len(task_db.all()) == 0: default_tasks = [ - Task(name="Take out trash", points=2, is_good=True, image_id="trash-can"), - Task(name="Make your bed", points=2, is_good=True, image_id="make-the-bed"), - Task(name="Sweep and clean kitchen", points=2, is_good=True, image_id="vacuum"), - Task(name="Do homework early", points=2, is_good=True, image_id="homework"), - Task(name="Be good for the day", points=2, is_good=True, image_id="good"), - Task(name="Clean your mess", points=2, is_good=True, image_id="broom"), + Task(name="Take out trash", points=20, is_good=True, image_id="trash-can"), + Task(name="Make your bed", points=25, is_good=True, image_id="make-the-bed"), + Task(name="Sweep and clean kitchen", points=15, is_good=True, image_id="vacuum"), + Task(name="Do homework early", points=30, is_good=True, image_id="homework"), + Task(name="Be good for the day", points=15, is_good=True, image_id="good"), + Task(name="Clean your mess", points=20, is_good=True, image_id="broom"), - Task(name="Fighting", points=2, is_good=False, image_id="fighting"), - Task(name="Yelling at parents", points=2, is_good=False, image_id="yelling"), - Task(name="Lying", points=2, is_good=False, image_id="lying"), - Task(name="Not doing what told", points=2, is_good=False, image_id="ignore"), - Task(name="Not flushing toilet", points=2, is_good=False, image_id="toilet"), + Task(name="Fighting", points=10, is_good=False, image_id="fighting"), + Task(name="Yelling at parents", points=10, is_good=False, image_id="yelling"), + Task(name="Lying", points=10, is_good=False, image_id="lying"), + Task(name="Not doing what told", points=5, is_good=False, image_id="ignore"), + Task(name="Not flushing toilet", points=5, is_good=False, image_id="toilet"), ] for task in default_tasks: task_db.insert(task.to_dict()) @@ -106,14 +106,14 @@ def createDefaultRewards(): """Create default rewards if none exist.""" if len(reward_db.all()) == 0: default_rewards = [ - Reward(name="Choose meal", description="Choose dinner or lunch", cost=3, image_id="meal"), - Reward(name="$1", description="Money is always nice", cost=8, image_id='money'), - Reward(name="$5", description="Even more money", cost=12, image_id='money'), - Reward(name="Tablet 1 hour", description="Play your games", cost=5, image_id='tablet'), - Reward(name="Computer with dad", description="Let's play a game together", cost=5, image_id='games-with-dad'), - Reward(name="Computer 1 hour", description="Minecraft or Terraria?", cost=5, image_id='computer-game'), - Reward(name="TV 1 hour", description="Too much is bad for you.", cost=5, image_id='tv'), - Reward(name="Candy from store", description="Yum!", cost=5, image_id='candy'), + Reward(name="Choose meal", description="Choose dinner or lunch", cost=30, image_id="meal"), + Reward(name="$1", description="Money is always nice", cost=35, image_id='money'), + Reward(name="$5", description="Even more money", cost=120, image_id='money'), + Reward(name="Tablet 1 hour", description="Play your games", cost=50, image_id='tablet'), + Reward(name="Computer with dad", description="Let's play a game together", cost=50, image_id='games-with-dad'), + Reward(name="Computer 1 hour", description="Minecraft or Terraria?", cost=50, image_id='computer-game'), + Reward(name="TV 1 hour", description="Too much is bad for you.", cost=40, image_id='tv'), + Reward(name="Candy from store", description="Yum!", cost=70, image_id='candy'), ] for reward in default_rewards: reward_db.insert(reward.to_dict())