Skip to content

Commit

Permalink
Update compile_schedule.py to remove first/last 2 lines of schedule doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymanning authored Jul 18, 2024
1 parent 1f7c18f commit eee45c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compile_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ def replace(match):
# Replace placeholders with actual values
event_content = event_content.replace('{DATE}', row['Date']).replace('{TIME}', row['Time']).replace('{LOCATION}', row['Location'])

# Remove the first and last lines
# Remove the first and last lines (last two lines specifically)
event_content_lines = event_content.split('\n')
event_content = '\n'.join(event_content_lines[1:-1]).strip()
event_content = '\n'.join(event_content_lines[1:-2]).strip()

# Adjust formatting for Date, Time, Location
event_content = event_content.replace('**Date:**', '\n**Date:**')
Expand Down

0 comments on commit eee45c1

Please sign in to comment.