Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix formatting of columns parameter #120

Merged
merged 1 commit into from
Apr 3, 2024
Merged

Fix formatting of columns parameter #120

merged 1 commit into from
Apr 3, 2024

Conversation

bernatfp
Copy link
Contributor

@bernatfp bernatfp commented Apr 3, 2024

The current implementation that builds the columns parameter wraps each column in double quotes, which is not something the API's parser supports. This leads to errors such as this one:

image

We see that doing curl -H "X-Dune-API-Key:$key" "https://api.dune.com/api/v1/query/3567562/results/csv?columns=donor_fname%2Covertip_amount%2Cdays_overtipped%2Coverall_tip_given_amount%2Coverall_avg_tip_amount&filters=overtip_amount%3E0&sort_by=overall_tip_given_amount%20desc&limit=1" instead works.

@bernatfp
Copy link
Contributor Author

bernatfp commented Apr 3, 2024

Screenshot 2024-04-03 at 19 29 09

@bernatfp bernatfp merged commit 09d2b92 into main Apr 3, 2024
3 checks passed
@bh2smith bh2smith deleted the columns_format_fix branch November 12, 2024 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants