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 23ee8fd commit f885e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_event_reminders.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ 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 + '\n').replace('{{TIME}}', time + '\n').replace('{{LOCATION}}', location)
email_content = email_content.replace('{{DATE}}', date + '\n\n').replace('{{TIME}}', time + '\n\n').replace('{{LOCATION}}', location)

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

0 comments on commit f885e83

Please sign in to comment.