chore(read_csv): remove deprecated argument (#25226)

This commit is contained in:
Beto Dealmeida 2023-09-08 12:10:55 -07:00 committed by GitHub
parent 33624289fe
commit 710e111c5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 10 deletions

View File

@ -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,
begin_sep_field, end_sep_field) }}
</tr>
<tr>
{{ lib.render_field(form.infer_datetime_format, begin_sep_label,
end_sep_label, begin_sep_field, end_sep_field) }}
</tr>
<tr>
{{ lib.render_field(form.day_first, begin_sep_label, end_sep_label,
begin_sep_field, end_sep_field) }}

View File

@ -197,10 +197,6 @@ class CsvToDatabaseForm(UploadToDatabaseForm):
),
filters=[filter_not_empty_values],
)
infer_datetime_format = BooleanField(
_("Interpret Datetime Format Automatically"),
description=_("Interpret the datetime format automatically"),
)
day_first = BooleanField(
_("Day First"),
description=_("DD/MM format dates, international and European format"),

View File

@ -167,7 +167,6 @@ class CsvToDatabaseView(CustomFormView):
form.overwrite_duplicate.data = True
form.skip_initial_space.data = False
form.skip_blank_lines.data = True
form.infer_datetime_format.data = True
form.day_first.data = False
form.decimal.data = "."
form.if_exists.data = "fail"
@ -199,7 +198,6 @@ class CsvToDatabaseView(CustomFormView):
filepath_or_buffer=form.csv_file.data,
header=form.header.data if form.header.data else 0,
index_col=form.index_col.data,
infer_datetime_format=form.infer_datetime_format.data,
dayfirst=form.day_first.data,
iterator=True,
keep_default_na=not form.null_values.data,