1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-26 00:29:43 +02:00

feat: Filter Recipes By Household (and a ton of bug fixes) (#4207)

Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
Michael Genson 2024-09-22 09:59:20 -05:00 committed by GitHub
parent 2a6922a85c
commit 7c274de778
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
65 changed files with 896 additions and 590 deletions

View file

@ -247,6 +247,16 @@ def explore_groups_group_slug_foods_item_id(group_slug, item_id):
return f"{prefix}/explore/groups/{group_slug}/foods/{item_id}"
def explore_groups_group_slug_households(group_slug):
"""`/api/explore/groups/{group_slug}/households`"""
return f"{prefix}/explore/groups/{group_slug}/households"
def explore_groups_group_slug_households_household_slug(group_slug, household_slug):
"""`/api/explore/groups/{group_slug}/households/{household_slug}`"""
return f"{prefix}/explore/groups/{group_slug}/households/{household_slug}"
def explore_groups_group_slug_organizers_categories(group_slug):
"""`/api/explore/groups/{group_slug}/organizers/categories`"""
return f"{prefix}/explore/groups/{group_slug}/organizers/categories"
@ -292,9 +302,9 @@ def foods_item_id(item_id):
return f"{prefix}/foods/{item_id}"
def groups_households_slug(slug):
"""`/api/groups/households/{slug}`"""
return f"{prefix}/groups/households/{slug}"
def groups_households_household_slug(household_slug):
"""`/api/groups/households/{household_slug}`"""
return f"{prefix}/groups/households/{household_slug}"
def groups_labels_item_id(item_id):