Skip to content

Commit

Permalink
Merge pull request #120 from duneanalytics/columns_format_fix
Browse files Browse the repository at this point in the history
Fix formatting of columns parameter
  • Loading branch information
bernatfp authored Apr 3, 2024
2 parents 22a2659 + 76348d3 commit 09d2b92
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 09d2b92

Please sign in to comment.