Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Oct 31, 2023
1 parent 091f346 commit 34a8a96
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,14 @@ 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)
if len(errmsg) == 0:
return result
return errmsg


@app.route('/', methods=["POST"])
@auth.login_required
def play():
Expand Down

0 comments on commit 34a8a96

Please sign in to comment.