Skip to content

Commit

Permalink
Merge pull request #1184 from mjoerg/fix-dash-blueprint
Browse files Browse the repository at this point in the history
dash blueprint: quote add-child endpoint
  • Loading branch information
dairiki committed May 15, 2024
2 parents 7a1f6b1 + 88cc1e8 commit 57428ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ jobs:
include:
- python: "3.12"
install-ffmpeg: true
- os: "macos-latest"
# Omit test with older pillow versions on macOS.
# (Binary wheels not available?)
tox_skip_env: ".*-pillow"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down Expand Up @@ -141,6 +145,8 @@ jobs:
python -m pip install tox tox-gh-actions coverage[toml]
- name: Run python tests
run: tox
env:
TOX_SKIP_ENV: ${{ matrix.tox_skip_env }}
- name: Publish coverage data to codecov
uses: codecov/codecov-action@v3

Expand Down
2 changes: 1 addition & 1 deletion lektor/admin/modules/dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


@bp.route("/", defaults={"page": ""})
@bp.route("/<any(edit, delete, preview, add-child, upload):page>", endpoint="app")
@bp.route("/<any(edit, delete, preview, 'add-child', upload):page>", endpoint="app")
def app_view(**kwargs: Any) -> str:
"""Render the React admin GUI app."""
# Note: client side app handles redirect from page='' to page='edit'
Expand Down

0 comments on commit 57428ea

Please sign in to comment.