Skip to content

Commit

Permalink
give dummy meals names
Browse files Browse the repository at this point in the history
  • Loading branch information
Dieterbe committed Oct 23, 2024
1 parent f700637 commit 4ef534e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,12 @@ def handle(self, **options):
self.stdout.write(f' created plan {plan.description}')

# Add meals
for _ in range(0, meals_per_plan):
for i in range(0, meals_per_plan):
order = 1
meal = Meal(
plan=plan,
order=order,
name=f'Dummy meal {i}',
time=datetime.time(hour=randint(0, 23), minute=randint(0, 59)),
)
meal.save()
Expand Down

0 comments on commit 4ef534e

Please sign in to comment.