mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-03-09 13:24:53 +00:00
FIX: remove limit when exporting to CSV
This commit is contained in:
parent
329ba57fba
commit
434122f9f5
@ -924,8 +924,10 @@ SQL
|
||||
query_params = {}
|
||||
query_params = MultiJson.load(params[:params]) if params[:params]
|
||||
|
||||
opts = {current_user: current_user.username}
|
||||
opts = { current_user: current_user.username }
|
||||
opts[:explain] = true if params[:explain] == "true"
|
||||
|
||||
opts[:limit] = "ALL" if params[:format] == "csv"
|
||||
opts[:limit] = params[:limit].to_i if params[:limit]
|
||||
|
||||
result = DataExplorer.run_query(query, query_params, opts)
|
||||
|
Loading…
x
Reference in New Issue
Block a user