feat: timeline event for mealplans (#2050)

* added related user to mealplans

* made timeline event message actually optional

* added task to create events for mealplan recipes

* replaced fk constraint ops with bulk ops

* fixed event creation and adjusted query range

* indentation is hard

* added missing recipe id query filter

* added tests
This commit is contained in:
Michael Genson
2023-02-11 13:08:53 -06:00
committed by GitHub
parent 9e77a9f367
commit 5f7ac92c96
11 changed files with 371 additions and 4 deletions

View File

@@ -56,6 +56,7 @@ async def start_scheduler():
tasks.purge_group_registration,
tasks.purge_password_reset_tokens,
tasks.purge_group_data_exports,
tasks.create_mealplan_timeline_events,
)
SchedulerRegistry.register_minutely(