Skip to content

Commit

Permalink
remove duplicate title from event descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymanning authored Jul 18, 2024
1 parent 94c2ce8 commit fdfb437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compile_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def remove_last_lines(lines, n):
event_title = non_whitespace_lines[1] if len(non_whitespace_lines) > 1 else row["Event Name"]

# Remove the first line (title) and the last two non-whitespace lines
event_content = remove_last_lines(event_content, 2)[1:]
event_content = remove_last_lines(event_content, 2)[2:]

# Replace placeholders with actual values
event_content = ''.join(event_content).replace('{DATE}', row['Date']).replace('{TIME}', row['Time']).replace('{LOCATION}', row['Location'])
Expand Down

0 comments on commit fdfb437

Please sign in to comment.