mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-15 04:13:11 -05:00
refactor/recipe-to-snake-case (#364)
* formatting * snake case all recipes entries * set foreign key to int * run scheduler at startup and not import * set SQLite file path before imports Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
@@ -21,4 +21,4 @@ def get_shopping_list(
|
||||
mealplan: MealPlanInDB
|
||||
slugs = [x.slug for x in mealplan.meals]
|
||||
recipes: list[Recipe] = [db.recipes.get(session, x) for x in slugs]
|
||||
return [{"name": x.name, "recipeIngredient": x.recipeIngredient} for x in recipes if x]
|
||||
return [{"name": x.name, "recipe_ingredient": x.recipe_ingredient} for x in recipes if x]
|
||||
|
||||
@@ -50,11 +50,11 @@ def get_all_recipes(
|
||||
- description
|
||||
- image
|
||||
- recipeYield
|
||||
- totalTime
|
||||
- prepTime
|
||||
- performTime
|
||||
- total_time
|
||||
- prep_time
|
||||
- perform_time
|
||||
- rating
|
||||
- orgURL
|
||||
- org_url
|
||||
|
||||
**Note:** You may experience problems with with query parameters. As an alternative
|
||||
you may also use the post method and provide a body.
|
||||
@@ -78,11 +78,11 @@ def get_all_recipes_post(body: AllRecipeRequest, session: Session = Depends(gene
|
||||
- description
|
||||
- image
|
||||
- recipeYield
|
||||
- totalTime
|
||||
- prepTime
|
||||
- performTime
|
||||
- total_time
|
||||
- prep_time
|
||||
- perform_time
|
||||
- rating
|
||||
- orgURL
|
||||
- org_url
|
||||
|
||||
Refer to the body example for data formats.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user