Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/206.canada.changes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Only output a BOM for CSV and TSV files in Datatables' filter download.
3 changes: 2 additions & 1 deletion ckanext/datatablesview/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ def filtered_download(resource_view_id: str):
u'filters': json.dumps(filters),
u'format': request.form[u'format'],
u'fields': u','.join(cols),
u'bom': True,
# (canada fork only): BOM for CSVs and TSVs
'bom': request.form['format'] in ['csv', 'tsv', 'CSV', 'TSV'],
}))


Expand Down