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 dc23bb0 commit 24feaba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate_event_reminders.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ 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\n').replace('{{TIME}}', time + '\n\n').replace('{{LOCATION}}', location)
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\n' + email_content)
full_content = admin_template.replace('===BEGIN===', '===BEGIN===\n' + email_content + '\n').replace('===END===', '\n===END===')

# Convert the full email content to HTML
full_content_html = markdown.markdown(full_content)
Expand Down

0 comments on commit 24feaba

Please sign in to comment.