mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-06 07:53:11 -05:00
fix: mealplan pagination (#1464)
* added pagination to get_slice route * updated mealplan tests * renamed vars to match pagination query
This commit is contained in:
@@ -7,6 +7,7 @@ from pydantic import validator
|
||||
|
||||
from mealie.schema._mealie import MealieModel
|
||||
from mealie.schema.recipe.recipe import RecipeSummary
|
||||
from mealie.schema.response.pagination import PaginationBase
|
||||
|
||||
|
||||
class PlanEntryType(str, Enum):
|
||||
@@ -54,3 +55,7 @@ class ReadPlanEntry(UpdatePlanEntry):
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
|
||||
|
||||
class PlanEntryPagination(PaginationBase):
|
||||
items: list[ReadPlanEntry]
|
||||
|
||||
Reference in New Issue
Block a user