Skip to content

Commit

Permalink
Merge pull request #30 from sledilnik/jalezi-patch-2
Browse files Browse the repository at this point in the history
Fix(parser): vaccinations_by_municipalities_share
  • Loading branch information
lukarenko authored May 29, 2021
2 parents d89f9f4 + 5ae3c4e commit 75e79a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cepimose/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,12 @@ def _parse_vaccinations_by_municipalities_share(data) -> "list[VaccinationMunSha
if R == 32:
name, population, share2, share1, dose1 = el["C"]
dose2 = int(population * float(share2))
print(dose2)
elif R == 16:
name, population, share2, share1, dose2 = el["C"]
dose1 = int(population * float(share1))
print(dose1)
elif R == 4:
name, population, share1, dose1, dose2 = el["C"]
share2 = dose2 / population
else:
print(el)
raise Exception(f"Unknown R: {R}")
Expand Down

0 comments on commit 75e79a0

Please sign in to comment.