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

Fix Paprika Import Images when not downloading from URL. #3361

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

tlambertz
Copy link
Contributor

Previously, the code only tried to use the cropped image from paprika when downloading was attempted and actively failed. But if a user takes an image himself, the url field will be empty, thus downloading won't be attempted and won't fail.

This resulted in no image being imported at all.

This change makes it so that the download is tried first, but the photo_data is always tried if no image exists after, for whatever reason.

Previously, the code only tried to use the cropped image from paprika when downloading actively failed.
But if a user takes an image himself, the url will be empty, thus downloading won't be attempted and won't fail.
This change makes it so that the download is tried first, but the photo_data is always tried if no image exists for whatever reason.
@CLAassistant
Copy link

CLAassistant commented Oct 12, 2024

CLA assistant check
All committers have signed the CLA.

@vabene1111
Copy link
Collaborator

awesome, thank you!

@vabene1111 vabene1111 merged commit 416ddf3 into TandoorRecipes:develop Oct 14, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants