Skip to content

Commit

Permalink
Strip date string after splitting on ;
Browse files Browse the repository at this point in the history
  • Loading branch information
barbarahui committed Oct 14, 2024
1 parent a46d483 commit e2bc787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metadata_mapper/mappers/date_enrichments.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def convert_dates(date_values):
else:
# split on ; and flatten list
date_values = [
date for date_str in date_values for date in date_str.split(";")]
date.strip() for date_str in date_values for date in date_str.split(";")]
for date in date_values:
start_date, end_date = parse_date_or_range(clean_date(date))
if end_date != DEFAULT_DATETIME_STR:
Expand Down

0 comments on commit e2bc787

Please sign in to comment.