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 null-constrait errors in mealie import #3359

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

Chronophylos
Copy link
Contributor

Fix following error during mealie import:

ERROR 
null value in column "servings" of relation "cookbook_recipe" violates not-null constraint
DETAIL:  Failing row contains (304, Bechamel-Sauce, , , null, 0, t, 2024-10-12 13:47:31.576329+00, 2024-10-12 13:47:31.599914+00, 1, null, , 0, null, null, null, für 0,5 Liter Soße, None, 1, '0':2C '5':3C 'fur':1C 'liter':4C 'soss':5C, 'bechamel':2A 'bechamel-sauc':1A 'sauc':3A, null, t, f).

The error is caused by "recipe_yield": null in the exported recipes.

@CLAassistant
Copy link

CLAassistant commented Oct 12, 2024

CLA assistant check
All committers have signed the CLA.

@vabene1111
Copy link
Collaborator

thank you, I should probably fix the servings parse function to return 0 if nothing is found but this fixes it as well for now.

@vabene1111 vabene1111 merged commit 3a002cc into TandoorRecipes:develop Oct 14, 2024
1 check passed
@Chronophylos Chronophylos deleted the mealie-import branch October 14, 2024 12:17
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