Skip to content

armgit / wger

Public Imported from GitHub
0

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.py
index 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
# Django
from django.conf import settings
from django.core.management import call_command
@@ -58,7 +59,7 @@ def fetch_all_ingredient_images_task():
download_ingredient_images(logger.info)
+@shared_task
def sync_all_ingredients_task():
"""
Fetches the current ingredients from the default wger instance