feat(api): Update response message in add_recipe function
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8e17ee3932
commit
f9eeabbfb9
2
app.py
2
app.py
@ -314,7 +314,7 @@ def add_recipe():
|
|||||||
"description": description
|
"description": description
|
||||||
}
|
}
|
||||||
grocy.add_generic(EntityType.RECIPES, data_grocy)
|
grocy.add_generic(EntityType.RECIPES, data_grocy)
|
||||||
response_data = {"message": "Recipe added successfully"}
|
response_data = {"message": f"Recipe {data_grocy['name']} added successfully"}
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
error_message = str(e)
|
error_message = str(e)
|
||||||
response_data = {"message": error_message}
|
response_data = {"message": error_message}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user