fixed python ruff violaton

This commit is contained in:
nvrl committed 2026-05-28 23:08:20 +02:00
1 parent bcd5ab66a4
commit 0bdd7cedb0
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -170,7 +170,9 @@ class AdminViewSet(viewsets.ViewSet):
keep_flavor = Flavor.objects.get(pk=keep_id)
remove_flavor = Flavor.objects.get(pk=remove_id)
except Flavor.DoesNotExist:
return Response({"error": "One or both flavors not found"}, status=status.HTTP_404_NOT_FOUND)
return Response(
{"error": "One or both flavors not found"}, status=status.HTTP_404_NOT_FOUND
)
if keep_flavor.category_id != remove_flavor.category_id:
return Response(