mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
parent
8c1a97df2c
commit
84639b616d
@ -1,4 +1,5 @@
|
|||||||
import { baseURL } from "./api-utils";
|
import { baseURL } from "./api-utils";
|
||||||
|
import { baseURL } from "./api-utils";
|
||||||
import { apiReq } from "./api-utils";
|
import { apiReq } from "./api-utils";
|
||||||
import { store } from "../store/store";
|
import { store } from "../store/store";
|
||||||
import { router } from "../main";
|
import { router } from "../main";
|
||||||
@ -70,7 +71,7 @@ export default {
|
|||||||
router.push(`/`);
|
router.push(`/`);
|
||||||
},
|
},
|
||||||
|
|
||||||
async allByKeys(recipeKeys, num = 100) {
|
async allByKeys(recipeKeys, num = 9999) {
|
||||||
const response = await apiReq.get(recipeURLs.allRecipes, {
|
const response = await apiReq.get(recipeURLs.allRecipes, {
|
||||||
params: {
|
params: {
|
||||||
keys: recipeKeys,
|
keys: recipeKeys,
|
||||||
|
@ -25,7 +25,7 @@ def create_from_url(url: str) -> Recipe:
|
|||||||
"""
|
"""
|
||||||
r = requests.get(url)
|
r = requests.get(url)
|
||||||
new_recipe = extract_recipe_from_html(r.text, url)
|
new_recipe = extract_recipe_from_html(r.text, url)
|
||||||
new_recipe = Cleaner.clean(new_recipe)
|
new_recipe = Cleaner.clean(new_recipe, url)
|
||||||
new_recipe = download_image_for_recipe(new_recipe)
|
new_recipe = download_image_for_recipe(new_recipe)
|
||||||
|
|
||||||
recipe = Recipe(**new_recipe)
|
recipe = Recipe(**new_recipe)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user