From 6e7b8d3a135a04fddd35042e913675c1ef4367cb Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Tue, 23 Jan 2024 09:03:06 +0000 Subject: [PATCH] Remove extra whitespace --- game/views/level.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/game/views/level.py b/game/views/level.py index a4146b72b..a4511b002 100644 --- a/game/views/level.py +++ b/game/views/level.py @@ -361,11 +361,9 @@ def load_workspace(request, workspaceID): def save_workspace(request, workspaceID=None): request_params = ["name", "contents", "python_contents", "blockly_enabled", "python_enabled", "pythonViewEnabled"] - missing_params = [param for param in request_params if param not in request.POST] if missing_params != []: raise Exception("Request missing the following required parameters", missing_params) - name = request.POST.get("name") contents = request.POST.get("contents") python_contents = request.POST.get("python_contents")