We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
__detect_mime_type has a bug in line 66/67:
__detect_mime_type
ezodf/ezodf/document.py
Lines 56 to 68 in f9675c1
os.path.splitext returns the file extension with a leading dot (e. g. .ods). But MIMETYPES only contains the extensions without the dot:
os.path.splitext
.ods
MIMETYPES
ezodf/ezodf/const.py
Line 23 in f9675c1
The text was updated successfully, but these errors were encountered:
emmm, This function is introduced by me...
ext = os.path.splitext(file_manager.zipname)[1] should be ext = os.path.splitext(file_manager.zipname)[1][1:]
ext = os.path.splitext(file_manager.zipname)[1]
ext = os.path.splitext(file_manager.zipname)[1][1:]
I will create a PR later.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
__detect_mime_type
has a bug in line 66/67:ezodf/ezodf/document.py
Lines 56 to 68 in f9675c1
os.path.splitext
returns the file extension with a leading dot (e. g..ods
). ButMIMETYPES
only contains the extensions without the dot:ezodf/ezodf/const.py
Line 23 in f9675c1
The text was updated successfully, but these errors were encountered: