mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
chore(read_csv): remove deprecated argument (#25226)
This commit is contained in:
parent
33624289fe
commit
710e111c5e
@ -68,10 +68,6 @@ csv_scripts %} {% import 'superset/form_view/csv_macros.html' as csv_macros %}
|
|||||||
{{ lib.render_field(form.parse_dates, begin_sep_label, end_sep_label,
|
{{ lib.render_field(form.parse_dates, begin_sep_label, end_sep_label,
|
||||||
begin_sep_field, end_sep_field) }}
|
begin_sep_field, end_sep_field) }}
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
{{ lib.render_field(form.infer_datetime_format, begin_sep_label,
|
|
||||||
end_sep_label, begin_sep_field, end_sep_field) }}
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
{{ lib.render_field(form.day_first, begin_sep_label, end_sep_label,
|
{{ lib.render_field(form.day_first, begin_sep_label, end_sep_label,
|
||||||
begin_sep_field, end_sep_field) }}
|
begin_sep_field, end_sep_field) }}
|
||||||
|
@ -197,10 +197,6 @@ class CsvToDatabaseForm(UploadToDatabaseForm):
|
|||||||
),
|
),
|
||||||
filters=[filter_not_empty_values],
|
filters=[filter_not_empty_values],
|
||||||
)
|
)
|
||||||
infer_datetime_format = BooleanField(
|
|
||||||
_("Interpret Datetime Format Automatically"),
|
|
||||||
description=_("Interpret the datetime format automatically"),
|
|
||||||
)
|
|
||||||
day_first = BooleanField(
|
day_first = BooleanField(
|
||||||
_("Day First"),
|
_("Day First"),
|
||||||
description=_("DD/MM format dates, international and European format"),
|
description=_("DD/MM format dates, international and European format"),
|
||||||
|
@ -167,7 +167,6 @@ class CsvToDatabaseView(CustomFormView):
|
|||||||
form.overwrite_duplicate.data = True
|
form.overwrite_duplicate.data = True
|
||||||
form.skip_initial_space.data = False
|
form.skip_initial_space.data = False
|
||||||
form.skip_blank_lines.data = True
|
form.skip_blank_lines.data = True
|
||||||
form.infer_datetime_format.data = True
|
|
||||||
form.day_first.data = False
|
form.day_first.data = False
|
||||||
form.decimal.data = "."
|
form.decimal.data = "."
|
||||||
form.if_exists.data = "fail"
|
form.if_exists.data = "fail"
|
||||||
@ -199,7 +198,6 @@ class CsvToDatabaseView(CustomFormView):
|
|||||||
filepath_or_buffer=form.csv_file.data,
|
filepath_or_buffer=form.csv_file.data,
|
||||||
header=form.header.data if form.header.data else 0,
|
header=form.header.data if form.header.data else 0,
|
||||||
index_col=form.index_col.data,
|
index_col=form.index_col.data,
|
||||||
infer_datetime_format=form.infer_datetime_format.data,
|
|
||||||
dayfirst=form.day_first.data,
|
dayfirst=form.day_first.data,
|
||||||
iterator=True,
|
iterator=True,
|
||||||
keep_default_na=not form.null_values.data,
|
keep_default_na=not form.null_values.data,
|
||||||
|
Loading…
Reference in New Issue
Block a user