mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-02-16 16:34:47 +00:00
FIX: limit
parameter value ALL
should work for JSON exports.
183bc26763d8067381b8d2bb08720f65ace95363
This commit is contained in:
parent
183bc26763
commit
bbea8884db
@ -1181,11 +1181,9 @@ SQL
|
||||
|
||||
opts[:limit] =
|
||||
if params[:limit]
|
||||
params[:limit].to_i
|
||||
params[:limit] == "ALL" ? "ALL" : params[:limit].to_i
|
||||
elsif params[:format] == "csv"
|
||||
DataExplorer::QUERY_RESULT_MAX_LIMIT
|
||||
elsif params[:limit] == "ALL"
|
||||
"ALL"
|
||||
end
|
||||
|
||||
result = DataExplorer.run_query(query, query_params, opts)
|
||||
|
Loading…
x
Reference in New Issue
Block a user