Skip to content

Commit

Permalink
Split at .csv not .
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hodge committed Apr 13, 2020
1 parent 4b59d99 commit 08d4e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobius/extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def validate(df):

def summarise(f, dates_file):

date_string = dates_file.split('.')[0][-10:]
date_string = dates_file.split('.csv')[0][-10:]
date_object = datetime.strptime(date_string, '%Y_%m_%d')
heading_date_string = date_object.strftime("%B %d, %Y").replace(' 0', ' ')

Expand Down

0 comments on commit 08d4e34

Please sign in to comment.