mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
cleanup
This commit is contained in:
parent
fb24e32c92
commit
6049b9cc75
3 changed files with 4 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
||||||
const baseURL = "/api/";
|
const baseURL = "/api/";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import utils from "../utils";
|
import utils from "../utils";
|
||||||
// look for data.snackbar in response
|
|
||||||
function processResponse(response) {
|
function processResponse(response) {
|
||||||
try {
|
try {
|
||||||
utils.notify.show(response.data.snackbar.text, response.data.snackbar.type);
|
utils.notify.show(response.data.snackbar.text, response.data.snackbar.type);
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
from typing import List, Optional
|
from typing import List, Optional
|
||||||
|
|
||||||
import pydantic
|
|
||||||
from pydantic.main import BaseModel
|
from pydantic.main import BaseModel
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class AllRecipeResponse(BaseModel):
|
class AllRecipeResponse(BaseModel):
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -98,12 +98,6 @@ class Recipe(BaseModel):
|
||||||
except:
|
except:
|
||||||
recipe_dict["image"] = "no image"
|
recipe_dict["image"] = "no image"
|
||||||
|
|
||||||
# try:
|
|
||||||
# total_time = recipe_dict.get("totalTime")
|
|
||||||
# recipe_dict["totalTime"] = str(total_time)
|
|
||||||
# except:
|
|
||||||
# pass
|
|
||||||
|
|
||||||
recipe_doc = db.recipes.save_new(session, recipe_dict)
|
recipe_doc = db.recipes.save_new(session, recipe_dict)
|
||||||
recipe = Recipe(**recipe_doc)
|
recipe = Recipe(**recipe_doc)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue