Skip to content

Commit

Permalink
fix: remove deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
TomBursch committed Aug 14, 2024
1 parent e1df7d1 commit 9745f70
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/app/controller/auth/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class GetOIDCLoginUrl(Schema):
)
kitchenowl_scheme = fields.Boolean(
required=False,
default=False,
load_default=False,
load_only=True,
)

Expand Down
4 changes: 2 additions & 2 deletions backend/app/controller/recipe/recipe_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from flask_jwt_extended import jwt_required
from app.helpers import validate_args, authorize_household
from app.models import Recipe, Item, Tag
from recipe_scrapers import scrape_me
from recipe_scrapers import scrape_html
from recipe_scrapers._exceptions import SchemaOrgException, NoSchemaFoundInWildMode
from app.service.file_has_access_or_download import file_has_access_or_download
from app.service.ingredient_parsing import parseIngredients
Expand Down Expand Up @@ -198,7 +198,7 @@ def scrapeRecipe(args, household_id):
raise NotFoundRequest()

try:
scraper = scrape_me(args["url"], wild_mode=True)
scraper = scrape_html(args["url"], wild_mode=True)
except NoSchemaFoundInWildMode:
return "Unsupported website", 400
recipe = Recipe()
Expand Down
2 changes: 1 addition & 1 deletion backend/app/controller/recipe/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class RecipeItem(Schema):
class SearchByNameRequest(Schema):
query = fields.String(required=True, validate=lambda a: a and not a.isspace())
only_ids = fields.Boolean(
default=False,
load_default=False,
)


Expand Down

0 comments on commit 9745f70

Please sign in to comment.