ibeal / KitchenDB

A personal project to create something that can track inventory and recipes to suggest recipes to make determined by inventory
2 stars 0 forks source link

problems with apostrophes and parenthesis #31

Closed ibeal closed 3 years ago

ibeal commented 3 years ago

I need to replace all apostrophes and parenthesis with bogus characters in the db, otherwise I get weird issues. Only the list-string datatypes have issues with so far, but all the string fields could potentially have issues.

I will delegate responsibilities to the recipeAPI class to make sure that these characters are filtered out when going into the database, and they are replaced when leaving the database. The RecipeAPI will apply the filter when asked to save a recipe, and will apply the filler when asked for a recipe or recipes. The filter and filler functions will, however, live in the database class, as static methods. This is in case the other APIs need access to the functions.

ibeal commented 3 years ago

This problem has been double fixed. I applied the original fix (to filter out chars on entry and add them back in upon retrieval), however the new direction to adding list support to the database, has made this issue obsolete, and only used for backwards compatability