reaper47 / recipya

A clean, simple and powerful recipe manager your whole family will enjoy.
https://recipes.musicavis.ca
GNU General Public License v3.0
147 stars 10 forks source link

Import from Tandoor messes with ingredients #357

Closed bakker closed 1 week ago

bakker commented 2 weeks ago

Describe the bug When importing from Tandoor, the ingredient list gets messed up: units, description & quantities are in the wrong order. They're displayed "quantity description unit", where it should be "quantity unit description". This also block Nutrition calculation

To Reproduce

  1. Open "Avatar menu"
  2. Click "Settings"
  3. Click "Data"
  4. Click "Import Data"
  5. Select Solution "Tandoor" and fill out correct URL & Credentials
  6. Click "Import"
  7. View recipes

Expected behavior

Screenshots Tandoor Screenshot_408 Recipya Imported from Tandoor Screenshot_410 Recipya imported directly from https://omnivorescookbook.com/savory-oatmeal/, using "Add recipe --> Website --> Fetch" Screenshot_411

Environment:

reaper47 commented 2 weeks ago

This is a dumb dumb mistake of mine: https://github.com/reaper47/recipya/blob/main/internal%2Fintegrations%2Ftandoor.go#L263-L275

I will fix this once back home next week.