Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Automatic linting

Github-actions944335614e39
diff --git a/wger/nutrition/migrations/0027_prefill_end_date.py b/wger/nutrition/migrations/0027_prefill_end_date.py
index dfe074a80..24c338bc7 100644
--- a/wger/nutrition/migrations/0027_prefill_end_date.py
+++ b/wger/nutrition/migrations/0027_prefill_end_date.py
@@ -12,9 +12,7 @@ def prefill_end_date(apps, schema_editor):
user_ids = NutritionPlan.objects.order_by().values_list('user_id', flat=True).distinct()
for user_id in user_ids:
- plans = list(
- NutritionPlan.objects.filter(user_id=user_id).order_by('start', 'id')
- )
+ plans = list(NutritionPlan.objects.filter(user_id=user_id).order_by('start', 'id'))
for i in range(len(plans) - 1):
current = plans[i]
next_plan = plans[i + 1]