Skip to content

Commit 89670fe

Browse files
[feature][s]: Enable Compressed CSV
1 parent c794470 commit 89670fe

File tree

1 file changed

+2
-2
lines changed
  • ckanext/dataexplorer/public/vendor/recline

1 file changed

+2
-2
lines changed

ckanext/dataexplorer/public/vendor/recline/recline.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4789,7 +4789,7 @@ this.recline.View = this.recline.View || {};
47894789
setTimeout(() => {
47904790
document.getElementById("download-format").innerHTML =
47914791
DATASTORE_SEARCH_ROWS_MAX <= self.model.recordCount
4792-
? '<option value="compressed-csv">Compressed CSV</option>'
4792+
? '<option value="compressed-csv">Compressed CSV</option><option value="compressed-csv-zip">Compressed CSV Zip</option>'
47934793
: '<option value="csv">CSV</option><option value="compressed-csv">Compressed CSV</option><option value="json">JSON</option>';
47944794
}, 2000);
47954795

@@ -4830,7 +4830,7 @@ this.recline.View = this.recline.View || {};
48304830
},
48314831
extractFile: function (self, sql_query, format, query={}) {
48324832
var base_path = self.model.attributes.endpoint || self.options.site_url;
4833-
var endpoint = `${base_path}/3/action/datastore_search_sql?sql=${escape(sql_query)}&resource_id=${query.resource_id}`; // USE BASE_PATH IN PRODUCTION
4833+
var endpoint = `${base_path}/3/action/datastore_search_sql?sql=${escape(sql_query)}&resource_id=${query.resource_id}&format=${format}`; // USE BASE_PATH IN PRODUCTION
48344834
self.progress();
48354835

48364836
fetch(endpoint)

0 commit comments

Comments
 (0)