diff --git a/funnel/cli/periodic/notification.py b/funnel/cli/periodic/notification.py index 5fedb23a9..0e5437a71 100644 --- a/funnel/cli/periodic/notification.py +++ b/funnel/cli/periodic/notification.py @@ -69,7 +69,7 @@ def project_starting_tomorrow_alert() -> None: .all() ): dispatch_notification( - models.ProjectStartingNotification( + models.ProjectTomorrowNotification( document=project, fragment=project.next_session_from(start_time), ) diff --git a/funnel/templates/notifications/project_tomorrow_email.html.jinja2 b/funnel/templates/notifications/project_tomorrow_email.html.jinja2 index 21716f57a..2ab477683 100644 --- a/funnel/templates/notifications/project_tomorrow_email.html.jinja2 +++ b/funnel/templates/notifications/project_tomorrow_email.html.jinja2 @@ -4,7 +4,7 @@
{%- trans project=view.project.joined_title, start_datetime=(view.session or view.project).start_at_localized|datetime, venue=project.primary_venue.title -%}{{ project }} has an in-person session at {{ venue }}, starting {{ start_datetime }}{%- endtrans -%}
+{%- trans project=view.project.joined_title, start_datetime=(view.session or view.project).start_at_localized|datetime, venue=view.project.primary_venue.title -%}{{ project }} has an in-person session at {{ venue }}, starting {{ start_datetime }}{%- endtrans -%}