mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
fixed backend python error
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user