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 d7c99c7 commit 58781de
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 @@ -36,10 +36,10 @@ def create_event_script(event_name, date_str, content_file, frequency, day_of_we
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===')
full_content = admin_template.replace('===BEGIN===', '===BEGIN===\n\n' + email_content + '\n\n').replace('===END===', '\n===END===')

# Convert the full email content to HTML
full_content_html = markdown.markdown(full_content)
full_content_html = markdown.markdown(full_content, extensions=['nl2br'])

# Write the script
script_content = f"""
Expand Down

0 comments on commit 58781de

Please sign in to comment.