davidhealey / waistline

Libre calorie counter app for Android. Built with Cordova.
568 stars 67 forks source link

Phantom diary entries from the food menu #308

Closed dharwood closed 3 years ago

dharwood commented 3 years ago

Problem: The checkmark in the "Food, Meals, Recipes" list writes an item to the DB before setting a category to put the item in, so not selecting a category leaves an invisible entry in the diary that still affects the calorie and nutrition counts. This entry cannot be interacted with to modify or delete from the diary

Replication:

Version: 3.1.3, from Github

Workaround: Export the DB, edit the food entry in the export to give it a category, and re-import the file. From there, the entry can be modified or deleted from the diary as usual

Not a major problem, but a little surprising when I accidentally added an invisible copy of last night's dinner to the diary ("Why am I 400 calories over my target?"). Thank you!

davidhealey commented 3 years ago

Aha that explains it. Thanks. Let's track it over here https://github.com/davidhealey/waistline/issues/301