open-eats / OpenEats

:pizza: Self Hosted Recipe Management App :hamburger:
https://open-eats.github.io/
MIT License
669 stars 102 forks source link

Proper Fractions Throw 500 Error #142

Open jhc142002 opened 3 years ago

jhc142002 commented 3 years ago

Fraction characters, such as , throw a 500 error. 1\3 works as expected, of course. Other characters likely do the same, but I didn't test beyond fractions.

Clicking "Save recipe" commits up to the fraction to the database and then throws the error. Visiting the recipe page displays all content in the field up to where the fraction was and all content from other fields except the image.

Seems related to how python handles (or rather doesn't) conversion of these specific characters to floats?

Anyway, not a super urgent problem, but one nonetheless.

sepulzera commented 2 years ago

Seems like a duplicate of: https://github.com/open-eats/OpenEats/issues/54