Skip to content

Commit

Permalink
fixup! vaccinations_by_region
Browse files Browse the repository at this point in the history
  • Loading branch information
Andraz Vrhovec committed Apr 2, 2021
1 parent 16370d0 commit a8c475c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cepimose/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,10 @@ def _parse_vaccinations_by_region(data) -> 'list[VaccinationByRegionRow]':
return parsed_data

def _parse_vaccines_supplied_by_manufacturer(data) -> 'list[VaccinationByManufacturerRow]':
from pprint import pp

resp = data["results"][0]["result"]["data"]["dsr"]["DS"][0]["PH"][1]["DM1"]
parsed_data = []

for element in resp:
pp(element)
# el = next(filter(lambda x: 'C' in x, element["C"]))
el = {}
# pp(el['C'])

date = parse_date(element["C"][0])

if len(element["C"]) > 2:
Expand Down

0 comments on commit a8c475c

Please sign in to comment.