From daedc67e7afe9785342e5c674e1b7d886313815f Mon Sep 17 00:00:00 2001 From: dvirlabs <114520947+dvirlabs@users.noreply.github.com> Date: Tue, 6 Jan 2026 00:57:34 +0200 Subject: [PATCH] Update db_utils --- backend/db_utils.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/db_utils.py b/backend/db_utils.py index f2c1881..37acf49 100644 --- a/backend/db_utils.py +++ b/backend/db_utils.py @@ -93,9 +93,9 @@ def update_recipe_db(recipe_id: int, recipe_data: Dict[str, Any]) -> Optional[Di recipe_data["name"], recipe_data["meal_type"], recipe_data["time_minutes"], - json.dumps(recipe_data.get("tags", [])), - json.dumps(recipe_data.get("ingredients", [])), - json.dumps(recipe_data.get("steps", [])), + recipe_data.get("tags", []), + recipe_data.get("ingredients", []), + recipe_data.get("steps", []), recipe_data.get("image"), recipe_data.get("made_by"), recipe_id, @@ -143,9 +143,9 @@ def create_recipe_db(recipe_data: Dict[str, Any]) -> Dict[str, Any]: recipe_data["name"], recipe_data["meal_type"], recipe_data["time_minutes"], - json.dumps(recipe_data.get("tags", [])), - json.dumps(recipe_data.get("ingredients", [])), - json.dumps(recipe_data.get("steps", [])), + recipe_data.get("tags", []), + recipe_data.get("ingredients", []), + recipe_data.get("steps", []), recipe_data.get("image"), recipe_data.get("made_by"), recipe_data.get("user_id"),