feat: mealplan-webhooks (#1403)

* fix type errors on event bus

* webhooks fields required for new implementation

* db migration

* wip: webhook query + tests and stub function

* ignore type checker error

* type and method cleanup

* datetime and time utc validator

* update testing code for utc scheduled time

* fix file cmp function call

* update version_number

* add support for translating "time" objects when restoring backup

* bump recipe-scrapers

* use specific import syntax

* generate frontend types

* utilize names exports

* use utc times

* add task to scheduler

* implement new scheduler functionality

* stub for type annotation

* implement meal-plan data getter

* add experimental banner
This commit is contained in:
Hayden
2022-06-17 13:25:47 -08:00
committed by GitHub
parent b1256f4ad2
commit 5a053cdcd6
22 changed files with 428 additions and 93 deletions

View File

@@ -8,6 +8,9 @@ from .repository_generic import RepositoryGeneric
class RepositoryMeals(RepositoryGeneric[ReadPlanEntry, GroupMealPlan]):
def by_group(self, group_id: UUID) -> "RepositoryMeals":
return super().by_group(group_id) # type: ignore
def get_slice(self, start: date, end: date, group_id: UUID) -> list[ReadPlanEntry]:
start_str = start.strftime("%Y-%m-%d")
end_str = end.strftime("%Y-%m-%d")