Explorar o código

Fix ruff complains

Martin Burggraf hai 4 días
pai
achega
d7d78f4fc7

+ 1 - 1
netbox/extras/api/views.py

@@ -2,7 +2,7 @@ from django.core.exceptions import NON_FIELD_ERRORS
 from django.http import Http404
 from django.shortcuts import get_object_or_404
 from django.utils.translation import gettext_lazy as _
-from drf_spectacular.utils import OpenApiResponse, OpenApiTypes, extend_schema, extend_schema_view
+from drf_spectacular.utils import OpenApiResponse, OpenApiTypes, extend_schema
 from rest_framework.decorators import action
 from rest_framework.exceptions import PermissionDenied, ValidationError
 from rest_framework.generics import RetrieveUpdateDestroyAPIView

+ 1 - 1
netbox/extras/management/commands/runscript.py

@@ -85,7 +85,7 @@ class Command(BaseCommand):
         cleaned_data = form.cleaned_data.copy()
         notifications = cleaned_data.pop('_notifications')
         for key in EXEC_PARAM_FIELDS:
-            cleaned_data.pop(key, None)    
+            cleaned_data.pop(key, None)
 
         # Execute the script.
         job = ScriptJob.enqueue(