From 76348d3f3efc19b17dd9f738e91cfc76fd25065f Mon Sep 17 00:00:00 2001 From: Bernat Date: Wed, 3 Apr 2024 19:15:00 +0200 Subject: [PATCH] Fix formatting of columns parameter --- dune_client/api/base.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dune_client/api/base.py b/dune_client/api/base.py index 1abfb43..a9e338e 100644 --- a/dune_client/api/base.py +++ b/dune_client/api/base.py @@ -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: