fix: RKI changed the format again
This commit is contained in:
parent
2440cce1ae
commit
eef4a6b477
1 changed files with 6 additions and 0 deletions
6
plot.py
6
plot.py
|
@ -181,6 +181,8 @@ def parse_rki(filename):
|
|||
raw_first_vaccinations = impfungen['Erstimpfung']
|
||||
elif 'Einmal geimpft' in impfungen:
|
||||
raw_first_vaccinations = impfungen['Einmal geimpft']
|
||||
elif 'mindestens einmal geimpft':
|
||||
raw_first_vaccinations = impfungen['mindestens einmal geimpft']
|
||||
elif 'Begonnene Impfserie' in impfungen:
|
||||
raw_first_vaccinations = impfungen['Begonnene Impfserie']
|
||||
|
||||
|
@ -188,6 +190,10 @@ def parse_rki(filename):
|
|||
raw_second_vaccinations = impfungen['Zweitimpfung']
|
||||
elif 'Vollständig geimpft' in impfungen:
|
||||
raw_second_vaccinations = impfungen['Vollständig geimpft']
|
||||
elif 'vollständig geimpft' in impfungen:
|
||||
raw_second_vaccinations = impfungen['vollständig geimpft']
|
||||
elif 'vollständig geimpt' in impfungen:
|
||||
raw_second_vaccinations = impfungen['vollständig geimpt'] # sic!
|
||||
|
||||
data_first_vaccination = calculate_vaccination_data(raw_first_vaccinations)
|
||||
data_second_vaccination = calculate_vaccination_data(raw_second_vaccinations)
|
||||
|
|
Loading…
Reference in a new issue