Self hosted FLOSS fitness/workout, nutrition and weight tracker
Added the command structure and tested the code
Ali Rahbarccb59e4816df
diff --git a/wger/nutrition/management/commands/sync-all-ingredients-task.py b/wger/nutrition/management/commands/sync-ingredients-async.pysimilarity index 69%rename from wger/nutrition/management/commands/sync-all-ingredients-task.pyrename to wger/nutrition/management/commands/sync-ingredients-async.pyindex 2177199fb..75057e80c 100644--- a/wger/nutrition/management/commands/sync-all-ingredients-task.py+++ b/wger/nutrition/management/commands/sync-ingredients-async.py@@ -12,3 +12,13 @@## You should have received a copy of the GNU Affero General Public License+from django.core.management.base import BaseCommand+++class Command(BaseCommand):++ help = "Synchronize all ingredients from a remote wger instance to the local database"++ def handle(self, *args, **options):++ self.stdout.write("Synchronizing all ingredients...")