Improve apply_subscriptions

Events now have a subscriptions_applied flag. Using apply_subscriptions without passing an event now processes all events in the next week, which have not yet been processed
This commit is contained in:
2025-10-27 15:32:00 +01:00
parent a2722d5f9f
commit b687a260c5
8 changed files with 95 additions and 22 deletions

View File

@@ -24,7 +24,7 @@ dev = [
]
[project.scripts]
apply-subscriptions = "meal_manager.scripts:apply_subscriptions"
apply-subscriptions = "meal_manager.scripts:apply_subscriptions_cli"
[tool.isort]
@@ -36,7 +36,7 @@ profile = "black"
# this is typically a path given in POSIX (e.g. forward slashes)
# format, relative to the token %(here)s which refers to the location of this
# ini file
script_location = "%(here)s/alembic"
script_location = "%(here)s/src/meal_manager/alembic"
# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
# Uncomment the line below if you want the files to be prepended with date and time