diff --git a/app/blueprints/packages/releases.py b/app/blueprints/packages/releases.py index 102e373e..b763be49 100644 --- a/app/blueprints/packages/releases.py +++ b/app/blueprints/packages/releases.py @@ -106,7 +106,7 @@ def create_release(package): return render_template("packages/release_new.html", package=package, form=form) -@bp.route("/packages///releases//download/") +@bp.route("/packages///releases//download/") @is_package_page def download_release(package, id): release = PackageRelease.query.get(id) @@ -144,7 +144,7 @@ def download_release(package, id): return redirect(release.url) -@bp.route("/packages///releases//", methods=["GET", "POST"]) +@bp.route("/packages///releases//", methods=["GET", "POST"]) @login_required @is_package_page def edit_release(package, id): @@ -227,7 +227,7 @@ def bulk_change_release(package): return render_template("packages/release_bulk_change.html", package=package, form=form) -@bp.route("/packages///releases//delete/", methods=["POST"]) +@bp.route("/packages///releases//delete/", methods=["POST"]) @login_required @is_package_page def delete_release(package, id): diff --git a/app/blueprints/packages/screenshots.py b/app/blueprints/packages/screenshots.py index d1c47785..7bc5832e 100644 --- a/app/blueprints/packages/screenshots.py +++ b/app/blueprints/packages/screenshots.py @@ -92,7 +92,7 @@ def create_screenshot(package): return render_template("packages/screenshot_new.html", package=package, form=form) -@bp.route("/packages///screenshots//edit/", methods=["GET", "POST"]) +@bp.route("/packages///screenshots//edit/", methods=["GET", "POST"]) @login_required @is_package_page def edit_screenshot(package, id): @@ -124,7 +124,7 @@ def edit_screenshot(package, id): return render_template("packages/screenshot_edit.html", package=package, screenshot=screenshot, form=form) -@bp.route("/packages///screenshots//delete/", methods=["POST"]) +@bp.route("/packages///screenshots//delete/", methods=["POST"]) @login_required @is_package_page def delete_screenshot(package, id): diff --git a/app/blueprints/tasks/__init__.py b/app/blueprints/tasks/__init__.py index 5ce4b4d7..25ea8614 100644 --- a/app/blueprints/tasks/__init__.py +++ b/app/blueprints/tasks/__init__.py @@ -39,7 +39,7 @@ def start_getmeta(): }) -@bp.route("/tasks//") +@bp.route("/tasks//") def check(id): result = celery.AsyncResult(id) status = result.status