We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@app.route("/admin/<password>/<int:page>", methods=["GET"]) def admin(password: str, page: int = 1) -> Any: print(page) files, total = [], 2 return render_template("admin.html", files=files, password=password, total=total)
This fails when page is 1,2,3 or 8.
At least. it might fail in more cases.
If page is 4 or 5, 9, etc, it works.
By works I mean, it uses the actual argument instead of the default: 1
I'm guessing the admin endpoint is being reserved in some way, but should it?
If I replace 'admin' to 'pok' for example:
@app.route("/pok/<password>/<int:page>", methods=["GET"])
Then it works as expected.
Environment:
The text was updated successfully, but these errors were encountered:
Flask does not reserve any routes. You're probably using an extension that does.
Sorry, something went wrong.
Just to add some information. Whatever is reserving it only messes up when the password is change_me.
change_me
No branches or pull requests
This fails when page is 1,2,3 or 8.
At least. it might fail in more cases.
If page is 4 or 5, 9, etc, it works.
By works I mean, it uses the actual argument instead of the default: 1
I'm guessing the admin endpoint is being reserved in some way, but should it?
If I replace 'admin' to 'pok' for example:
@app.route("/pok/<password>/<int:page>", methods=["GET"])
Then it works as expected.
Environment:
The text was updated successfully, but these errors were encountered: