Type hint and docstring.

This commit is contained in:
Edward Betts 2023-05-14 15:46:38 +00:00
parent 16c8e9a360
commit 977f83779a

View file

@ -914,7 +914,8 @@ def api_save_changeset(session_id):
@app.route("/sql", methods=["GET", "POST"])
def run_sql():
def run_sql() -> str:
"""Web form where the user can run an SQL query."""
if request.method != "POST":
return render_template("run_sql.html")