added defaults for now.

reworked tasks and pending rewards
This commit is contained in:
2025-12-15 15:14:19 -05:00
parent 3b3d14e454
commit a40776f55d

View File

@@ -86,18 +86,18 @@ def createDefaultTasks():
"""Create default tasks if none exist.""" """Create default tasks if none exist."""
if len(task_db.all()) == 0: if len(task_db.all()) == 0:
default_tasks = [ default_tasks = [
Task(name="Take out trash", points=2, is_good=True, image_id="trash-can"), Task(name="Take out trash", points=20, is_good=True, image_id="trash-can"),
Task(name="Make your bed", points=2, is_good=True, image_id="make-the-bed"), Task(name="Make your bed", points=25, is_good=True, image_id="make-the-bed"),
Task(name="Sweep and clean kitchen", points=2, is_good=True, image_id="vacuum"), Task(name="Sweep and clean kitchen", points=15, is_good=True, image_id="vacuum"),
Task(name="Do homework early", points=2, is_good=True, image_id="homework"), Task(name="Do homework early", points=30, is_good=True, image_id="homework"),
Task(name="Be good for the day", points=2, is_good=True, image_id="good"), Task(name="Be good for the day", points=15, is_good=True, image_id="good"),
Task(name="Clean your mess", points=2, is_good=True, image_id="broom"), 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="Fighting", points=10, is_good=False, image_id="fighting"),
Task(name="Yelling at parents", points=2, is_good=False, image_id="yelling"), Task(name="Yelling at parents", points=10, is_good=False, image_id="yelling"),
Task(name="Lying", points=2, is_good=False, image_id="lying"), Task(name="Lying", points=10, is_good=False, image_id="lying"),
Task(name="Not doing what told", points=2, is_good=False, image_id="ignore"), Task(name="Not doing what told", points=5, is_good=False, image_id="ignore"),
Task(name="Not flushing toilet", points=2, is_good=False, image_id="toilet"), Task(name="Not flushing toilet", points=5, is_good=False, image_id="toilet"),
] ]
for task in default_tasks: for task in default_tasks:
task_db.insert(task.to_dict()) task_db.insert(task.to_dict())
@@ -106,14 +106,14 @@ def createDefaultRewards():
"""Create default rewards if none exist.""" """Create default rewards if none exist."""
if len(reward_db.all()) == 0: if len(reward_db.all()) == 0:
default_rewards = [ default_rewards = [
Reward(name="Choose meal", description="Choose dinner or lunch", cost=3, image_id="meal"), Reward(name="Choose meal", description="Choose dinner or lunch", cost=30, image_id="meal"),
Reward(name="$1", description="Money is always nice", cost=8, image_id='money'), Reward(name="$1", description="Money is always nice", cost=35, image_id='money'),
Reward(name="$5", description="Even more money", cost=12, 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=5, image_id='tablet'), 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=5, image_id='games-with-dad'), 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=5, image_id='computer-game'), 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=5, image_id='tv'), 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=5, image_id='candy'), Reward(name="Candy from store", description="Yum!", cost=70, image_id='candy'),
] ]
for reward in default_rewards: for reward in default_rewards:
reward_db.insert(reward.to_dict()) reward_db.insert(reward.to_dict())