FIX: `limit` parameter value `ALL` should work for JSON exports.
183bc26763
This commit is contained in:
parent
183bc26763
commit
bbea8884db
|
@ -1181,11 +1181,9 @@ SQL
|
||||||
|
|
||||||
opts[:limit] =
|
opts[:limit] =
|
||||||
if params[:limit]
|
if params[:limit]
|
||||||
params[:limit].to_i
|
params[:limit] == "ALL" ? "ALL" : params[:limit].to_i
|
||||||
elsif params[:format] == "csv"
|
elsif params[:format] == "csv"
|
||||||
DataExplorer::QUERY_RESULT_MAX_LIMIT
|
DataExplorer::QUERY_RESULT_MAX_LIMIT
|
||||||
elsif params[:limit] == "ALL"
|
|
||||||
"ALL"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
result = DataExplorer.run_query(query, query_params, opts)
|
result = DataExplorer.run_query(query, query_params, opts)
|
||||||
|
|
Loading…
Reference in New Issue