mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-04 00:47:02 +01:00
merge
This commit is contained in:
1 parent
3ff1a6a87a
commit
cb58d05a34
5 files changed
+4
-8
No files matched your search
+1
-1
@@ -40,5 +40,5 @@ Thumbs.db
|
||||
!.env.example
|
||||
frontend/.env*
|
||||
backend/django_cache/
|
||||
backend/backups/
|
||||
backend/media/
|
||||
backend/backups/
|
||||
@@ -103,13 +103,9 @@ class Command(BaseCommand):
|
||||
cat = cat_map['packs']
|
||||
else:
|
||||
cat = cat_map['energy'] # Ultimate fallback
|
||||
# Try to find existing flavor by name and category regardless of legacy status
|
||||
flavor = Flavor.objects.filter(name=name, category=cat).first()
|
||||
|
||||
# If it exists and is an active Shopify product, skip legacy processing
|
||||
if flavor and not flavor.is_legacy:
|
||||
self.stdout.write(f"Skipping active flavor: {name}")
|
||||
continue
|
||||
|
||||
# Try to find existing flavor by name and category
|
||||
flavor = Flavor.objects.filter(name=name, category=cat, is_legacy=True).first()
|
||||
|
||||
if not flavor:
|
||||
flavor = Flavor(
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.7 MiB After Width: | Height: | Size: 5.9 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.1 MiB After Width: | Height: | Size: 2.6 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 1.0 MiB |
Reference in new issue
Block a user