Skip to content

Commit

Permalink
[SP] Better spot draft headings.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheyWorkForYou Live CVS User committed Aug 30, 2024
1 parent 4f3ca5d commit 405b778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyscraper/sp_2024/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def convert_xml_to_twfy(file_path: Path, output_dir: Path, verbose: bool = False
timestamp = ""

# remove [Draft] from title
title = title.replace("[Draft]", "").strip()
title = re.sub(r'\[Draft\]( Business until \d\d:\d\d)?', '', title).strip()

# get the date in format Thursday 9 June 2005
date_str = datetime.date.fromisoformat(iso_date).strftime("%A %d %B %Y")
Expand Down

0 comments on commit 405b778

Please sign in to comment.