Skip to content

Commit ccb59e4

Browse files
committedJan 7, 2025
Added the command structure and tested the code
1 parent 75f4ffc commit ccb59e4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎wger/nutrition/management/commands/sync-all-ingredients-task.py ‎wger/nutrition/management/commands/sync-ingredients-async.py

+10
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,13 @@
1212
#
1313
# You should have received a copy of the GNU Affero General Public License
1414

15+
from django.core.management.base import BaseCommand
16+
17+
18+
class Command(BaseCommand):
19+
20+
help = "Synchronize all ingredients from a remote wger instance to the local database"
21+
22+
def handle(self, *args, **options):
23+
24+
self.stdout.write("Synchronizing all ingredients...")

0 commit comments

Comments
 (0)
Please sign in to comment.