Skip to content

Commit

Permalink
Fixed email template
Browse files Browse the repository at this point in the history
  • Loading branch information
djamg committed Sep 27, 2023
1 parent 1c48e03 commit 04fd102
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion funnel/cli/periodic/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<tr align="center">
<td class="text-content">
<p class="body-content">{%- trans project=view.project.joined_title, start_datetime=(view.session or view.project).start_at_localized|datetime, venue=project.primary_venue.title -%}<b>{{ project }}</b> has an in-person session at {{ venue }}, starting {{ start_datetime }}{%- endtrans -%}</p>
<p class="body-content">{%- trans project=view.project.joined_title, start_datetime=(view.session or view.project).start_at_localized|datetime, venue=view.project.primary_venue.title -%}<b>{{ project }}</b> has an in-person session at {{ venue }}, starting {{ start_datetime }}{%- endtrans -%}</p>
</td>
</tr>
<br/>
Expand Down
4 changes: 2 additions & 2 deletions funnel/views/notifications/project_starting_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,15 @@ def sms( # type: ignore[override]
venue = self.project.primary_venue
if venue is not None:
return ProjectStartingTomorrowVenueTemplate(
project=self.project,
account=self.project.account,
venue=venue,
url=shortlink(
self.project.url_for(_external=True, **self.tracking_tags('sms')),
shorter=True,
),
)
return ProjectStartingTomorrowLocationTemplate(
project=self.project,
account=self.project.account,
location=self.project.location,
url=shortlink(
self.project.url_for(_external=True, **self.tracking_tags('sms')),
Expand Down

0 comments on commit 04fd102

Please sign in to comment.