Skip to content

Commit

Permalink
fix pretty_sql
Browse files Browse the repository at this point in the history
  • Loading branch information
joelclems committed Jan 11, 2024
1 parent d77650a commit 660ed38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/gn_modulator/query/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def pretty_sql(query):
txt = str(query.statement.compile(compile_kwargs={"literal_binds": True}))
txt = str(query.compile(compile_kwargs={"literal_binds": True}))
txt = txt.replace("%%", "%")
txt = sqlparse.format(txt, reindent=True, keywordcase="upper")
return txt
Expand Down

0 comments on commit 660ed38

Please sign in to comment.