This commit is contained in:
hay-kot 2021-03-05 21:21:35 -09:00
parent 8c1a97df2c
commit 84639b616d
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import { baseURL } from "./api-utils";
import { baseURL } from "./api-utils";
import { apiReq } from "./api-utils";
import { store } from "../store/store";
import { router } from "../main";
@ -70,7 +71,7 @@ export default {
router.push(`/`);
},
async allByKeys(recipeKeys, num = 100) {
async allByKeys(recipeKeys, num = 9999) {
const response = await apiReq.get(recipeURLs.allRecipes, {
params: {
keys: recipeKeys,

View File

@ -25,7 +25,7 @@ def create_from_url(url: str) -> Recipe:
"""
r = requests.get(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)
recipe = Recipe(**new_recipe)