fix: Date parsing regex was wrong
This commit is contained in:
parent
d44ec474e2
commit
2ec5c35f22
1 changed files with 1 additions and 1 deletions
2
plot.py
2
plot.py
|
@ -152,7 +152,7 @@ data_second_vaccination = calculate_vaccination_data(impfungen['Zweitimpfung'])
|
||||||
# Stand aus offiziellen Angaben auslesen
|
# Stand aus offiziellen Angaben auslesen
|
||||||
stand = rki_file['Erläuterung'].iloc[1][0]
|
stand = rki_file['Erläuterung'].iloc[1][0]
|
||||||
|
|
||||||
stand_regex = re.compile('^Datenstand: (\d\d.\d\d.\d\d\d\d, \d*\d:\d\d) Uhr$')
|
stand_regex = re.compile('^Datenstand: (\d\d.\d\d.\d\d\d\d, \d?\d:\d\d) Uhr$')
|
||||||
m = stand_regex.match(stand)
|
m = stand_regex.match(stand)
|
||||||
stand_date = datetime.datetime.strptime(m.groups()[0], '%d.%m.%Y, %H:%M')
|
stand_date = datetime.datetime.strptime(m.groups()[0], '%d.%m.%Y, %H:%M')
|
||||||
print_stand = stand_date.isoformat()
|
print_stand = stand_date.isoformat()
|
||||||
|
|
Loading…
Reference in a new issue