Python formatting
This commit is contained in:
parent
a907dfdce7
commit
822e2e1a93
2 changed files with 4 additions and 5 deletions
|
@ -79,9 +79,7 @@ class ImportServerBlocklist(View):
|
|||
|
||||
def post(self, request):
|
||||
""" add a server from the admin panel """
|
||||
json_data = json.load(
|
||||
request.FILES["json_file"]
|
||||
)
|
||||
json_data = json.load(request.FILES["json_file"])
|
||||
failed = []
|
||||
success_count = 0
|
||||
for item in json_data:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue