diff --git a/main.py b/main.py index 498dc1d..e34df74 100644 --- a/main.py +++ b/main.py @@ -53,7 +53,7 @@ def clickhouse(): if not query: return app.send_static_file('play.html') - if database: + if database: query = f"USE {database}; {query}".encode() result, errmsg = chdb_query_with_errmsg(query, format) @@ -61,7 +61,6 @@ def clickhouse(): return result return errmsg - @app.route('/', methods=["POST"]) @auth.login_required def play():