Skip to content

Commit

Permalink
Remove extra whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrahmanDeghedy committed Jan 23, 2024
1 parent 391853e commit 6e7b8d3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions game/views/level.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 366 in game/views/level.py

View check run for this annotation

Codecov / codecov/patch

game/views/level.py#L363-L366

Added lines #L363 - L366 were not covered by tests

name = request.POST.get("name")
contents = request.POST.get("contents")
python_contents = request.POST.get("python_contents")
Expand Down

0 comments on commit 6e7b8d3

Please sign in to comment.