Skip to content

Commit

Permalink
feat: add TXT as default CSV extension (#10371)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored Jul 21, 2020
1 parent 3c39b26 commit 9b8da40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def _try_json_readsha( # pylint: disable=unused-argument

# Allowed format types for upload on Database view
EXCEL_EXTENSIONS = {"xlsx", "xls"}
CSV_EXTENSIONS = {"csv", "tsv"}
CSV_EXTENSIONS = {"csv", "tsv", "txt"}
ALLOWED_EXTENSIONS = {*EXCEL_EXTENSIONS, *CSV_EXTENSIONS}

# CSV Options: key/value pairs that will be passed as argument to DataFrame.to_csv
Expand Down

0 comments on commit 9b8da40

Please sign in to comment.