Self hosted FLOSS fitness/workout, nutrition and weight tracker
Switched sync_all_ingredients_task to a shared task
Ali Rahbar0abac592a4b1
diff --git a/wger/nutrition/tasks.py b/wger/nutrition/tasks.pyindex f476042d6..e6b771d89 100644--- a/wger/nutrition/tasks.py+++ b/wger/nutrition/tasks.py@@ -19,6 +19,7 @@ from random import (randint,)+from celery import shared_task# Djangofrom django.conf import settingsfrom django.core.management import call_command@@ -58,7 +59,7 @@ def fetch_all_ingredient_images_task():download_ingredient_images(logger.info)+@shared_taskdef sync_all_ingredients_task():"""Fetches the current ingredients from the default wger instance