Skip to content
New issue

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

import doesn't upper() jpg extension #47

Open
Stefal opened this issue Jan 5, 2019 · 2 comments
Open

import doesn't upper() jpg extension #47

Stefal opened this issue Jan 5, 2019 · 2 comments

Comments

@Stefal
Copy link

Stefal commented Jan 5, 2019

If the image files extension are ".jpg" and not ".JPG" the import doesn't rename them to APN*.JPG but APN*.jpg
Then, the toolchain doesn't work.

I tried to patch this bug, but I didn't find where to do it.

@zyioump
Copy link
Member

zyioump commented Jan 5, 2019

This function upload images to dm and rename them https://github.com/OpenPathView/OPV_importData/blob/master/opv_import/services/ressource_manager.py#L119
You can fix it like that:

>>> '.jpg'.upper()
'.JPG'

@Stefal
Copy link
Author

Stefal commented Jan 5, 2019

Thank you @zyioump
Here is #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants