Skip to content

Commit

Permalink
Update generate_event_reminders.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymanning authored Jul 18, 2024
1 parent 8f52203 commit 2ed976b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generate_event_reminders.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def create_event_script(event_name, date_str, content_file, frequency, day_of_we
with open(f'templates/{content_file}', 'r') as file:
email_content = file.read()

email_content = email_content.replace('{{DATE}}', date).replace('{{TIME}}', time).replace('{{LOCATION}}', location)
# Replace placeholders in the email content
email_content = email_content.replace('{DATE}', date).replace('{TIME}', time).replace('{LOCATION}', location)

# Insert event content into admin template
full_content = admin_template.replace('===BEGIN===', '===BEGIN===\n' + email_content + '\n').replace('===END===', '\n===END===')
Expand Down

0 comments on commit 2ed976b

Please sign in to comment.