Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Validata
Validata UI
Commits
3c70941c
Commit
3c70941c
authored
Dec 15, 2020
by
Pierre Dittgen
Browse files
ignore case in file extension
parent
ab56bb02
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_ui/validata_util.py
View file @
3c70941c
...
...
@@ -54,7 +54,7 @@ class UploadedFileValidataResource(ValidataResource):
"""Uploaded file implementation"""
def
detect_format_from_file_extension
(
filename
:
str
):
ext
=
Path
(
filename
).
suffix
ext
=
Path
(
filename
).
suffix
.
lower
()
if
ext
in
(
".csv"
,
".tsv"
,
".ods"
,
".xls"
,
".xlsx"
):
return
ext
[
1
:]
return
None
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment