Self hosted FLOSS fitness/workout, nutrition and weight tracker
Only sync the ingredients twice a month, that's more than enough at the moment
Roland Geider2c8aab62b1a7
diff --git a/wger/nutrition/tasks.py b/wger/nutrition/tasks.pyindex 6e9457d9f..a64b0d1c8 100644--- a/wger/nutrition/tasks.py+++ b/wger/nutrition/tasks.py@@ -30,7 +30,6 @@ from wger.nutrition.sync import (sync_ingredients,)-logger = logging.getLogger(__name__)@@ -67,9 +66,9 @@ def setup_periodic_tasks(sender, **kwargs):if settings.WGER_SETTINGS['SYNC_INGREDIENTS_CELERY']:sender.add_periodic_task(crontab(- hour=random.randint(0, 23),- minute=random.randint(0, 59),- day_of_week=random.randint(0, 6),+ hour=str(random.randint(0, 23)),+ minute=str(random.randint(0, 59)),+ day_of_month=f'{random.randint(1, 12)},{random.randint(18, 28)}',),sync_all_ingredients_task.s(),name='Sync exercises',