Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -59,8 +59,8 @@ def add_recipe_to_supabase(recipe: Recipe): 
     | 
|
| 59 | 
         
             
                    "instructions": recipe.instructions
         
     | 
| 60 | 
         
             
                }).execute()
         
     | 
| 61 | 
         | 
| 62 | 
         
            -
                 
     | 
| 63 | 
         
            -
                    raise HTTPException(status_code=500, detail=str( 
     | 
| 64 | 
         | 
| 65 | 
         
             
                return {"message": "Recipe stored in Supabase"}
         
     | 
| 66 | 
         | 
| 
         | 
|
| 59 | 
         
             
                    "instructions": recipe.instructions
         
     | 
| 60 | 
         
             
                }).execute()
         
     | 
| 61 | 
         | 
| 62 | 
         
            +
                except Exception as e:
         
     | 
| 63 | 
         
            +
                    raise HTTPException(status_code=500, detail=f"Insert failed: {str(e)}")
         
     | 
| 64 | 
         | 
| 65 | 
         
             
                return {"message": "Recipe stored in Supabase"}
         
     | 
| 66 | 
         |