Skip to content

Commit

Permalink
[DRAFT] [video recording] Do not send automated template emails when …
Browse files Browse the repository at this point in the history
…recordings are lost.

Ref: discussion at #1259
  • Loading branch information
jayaddison committed Jun 16, 2024
1 parent bb56130 commit abcc5e8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
6 changes: 1 addition & 5 deletions apps/api/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ def patch(self, proposal_id):
db.session.commit()

if proposal.video_recording_lost:
send_email_for_proposal(
proposal,
reason="video-recording-lost",
from_address=from_email("SPEAKERS_EMAIL"),
)
pass
else:
send_email_for_proposal(
proposal,
Expand Down
7 changes: 0 additions & 7 deletions apps/cfp_review/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,13 +325,6 @@ def send_email_for_proposal(proposal, reason="still-considered", from_address=No
)
template = "emails/cfp-slot-moved.txt"

elif reason == "video-recording-lost":
subject = "Your EMF %s video recording has been lost ('%s')" % (
proposal.human_type,
proposal.title,
)
template = "emails/video-recording-lost.txt"

elif reason == "video-recording-published":
subject = "Your EMF %s video recording has been published ('%s')" % (
proposal.human_type,
Expand Down
9 changes: 0 additions & 9 deletions templates/emails/video-recording-lost.txt

This file was deleted.

0 comments on commit abcc5e8

Please sign in to comment.