fixed backend python error

This commit is contained in:
nvrl committed 2026-02-16 19:16:47 +01:00
1 parent 5c2366a7c7
commit f4edf65c22
3 files changed
+31 -5

No files matched your search

@@ -126,9 +126,7 @@ class Command(BaseCommand):
flavor = Flavor.objects.filter(name=title, category=category, is_legacy=False).first()
if not flavor:
# One last check: if name exists in DIFFERENT category, we still create a new one
# If name exists in SAME category, we would have found it above.
flavor = Flavor(external_id=p['id'], name=title, is_legacy=False)
flavor = Flavor(external_id=p['id'], name=title, category=category, is_legacy=False)
created_count += 1
else:
updated_count += 1