Skip to content

Commit

Permalink
Fix formatting of columns parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
bernatfp committed Apr 3, 2024
1 parent 22a2659 commit 76348d3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions dune_client/api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,7 @@ def _build_parameters(

params = params or {}
if columns is not None and len(columns) > 0:
output = []
for column in columns:
# Escape all quotes and add quotes around it
col = '"' + column.replace('"', '\\"') + '"'
output.append(col)

params["columns"] = ",".join(output)
params["columns"] = ",".join(columns)
if sample_count is not None:
params["sample_count"] = sample_count
if filters is not None:
Expand Down

0 comments on commit 76348d3

Please sign in to comment.