Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/pip/pillow-10.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 authored Jan 23, 2024
2 parents 4402821 + bc5ef3f commit a3e15db
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

<!--next-version-placeholder-->

## v5.16.12 (2024-01-23)

### Fix

* 1573-Fix Saving Feature ([#1574](https://github.com/ocadotechnology/rapid-router/issues/1574)) ([`f95f2e2`](https://github.com/ocadotechnology/rapid-router/commit/f95f2e2f4edc5937f00fdeda32a72935b942cae0))

## v5.16.11 (2024-01-22)

### Fix
Expand Down
2 changes: 1 addition & 1 deletion game/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.16.11"
__version__ = "5.16.12"
4 changes: 2 additions & 2 deletions game/static/game/js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -1211,13 +1211,13 @@ ocargo.Game.prototype._setupSaveTab = function () {
break
}
}

var workspace = {
name: newName,
contents: ocargo.blocklyControl.serialize(),
python_contents: ocargo.pythonControl.getCode(),
blockly_enabled: BLOCKLY_ENABLED,
python_enabled: PYTHON_ENABLED
python_enabled: PYTHON_ENABLED,
pythonViewEnabled: PYTHON_VIEW_ENABLED
}

this.saving.saveWorkspace(
Expand Down
4 changes: 4 additions & 0 deletions game/views/level.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,10 @@ 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 a3e15db

Please sign in to comment.