Skip to content

Commit

Permalink
Merge pull request #18 from jalezi/nijz-broke-scrape
Browse files Browse the repository at this point in the history
Fix after NIJZ change queries
  • Loading branch information
stefanb authored May 14, 2021
2 parents 52d86c3 + 2ba3984 commit cb1eacd
Show file tree
Hide file tree
Showing 4 changed files with 350 additions and 120 deletions.
8 changes: 8 additions & 0 deletions cepimose/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
_vaccinations_timestamp_req,
_vaccinations_age_group_by_region_on_day_requests,
_vaccination_by_manufacturer_supplied_used_requests,
_vaccinations_by_manufacturer_used_req,
)
from .parser import (
_parse_vaccinations_by_age,
Expand All @@ -28,6 +29,7 @@
_parse_vaccinations_timestamp,
_parse_vaccinations_age_group_by_region_on_day,
_parse_vaccinations_by_manufacturer_supplied_used,
_parse_vaccinations_by_manufacturer_used,
)

from .types import (
Expand Down Expand Up @@ -190,3 +192,9 @@ def vaccinations_by_manufacturer_supplied_used(
req = _vaccination_by_manufacturer_supplied_used_requests[group][0]
doses = _get_data(req, _parse_vaccinations_by_manufacturer_supplied_used)
return doses


def vaccinations_by_manufacturer_used() -> "list[VaccinationByManufacturerRow]":
return _get_data(
_vaccinations_by_manufacturer_used_req, _parse_vaccinations_by_manufacturer_used
)
Loading

0 comments on commit cb1eacd

Please sign in to comment.