Skip to content
Snippets Groups Projects
Commit 40613437 authored by thomaswoehlke's avatar thomaswoehlke
Browse files

Refactoring: vaccination

parent cca04520
No related branches found
No related tags found
1 merge request!162Refactoring 2021 05 20 start
......@@ -89,7 +89,7 @@ class WhoServiceUpdateFull(WhoServiceUpdateBase):
i_country_code = result_item.countries.country_code
i_country = result_item.countries.country
i_who_region = result_item.countries.who_region
my_region = WhoCountryRegion.find_by_region(i_who_region)
my_region = WhoCountryRegion.find_by_location_group(i_who_region)
o = WhoCountry(
location=i_country,
location_code=i_country_code,
......@@ -128,11 +128,11 @@ class WhoServiceUpdateFull(WhoServiceUpdateBase):
k = 0
for my_date in new_dates_reported_from_import:
# app.logger.info(" my_date: " + str(my_date))
for my_who_import in WhoImport.get_for_one_datum(my_date.datum):
for my_who_import in WhoImport.find_by_datum(my_date.datum):
# app.logger.info(" my_who_import: " + str(my_who_import))
my_country = WhoCountry.get_by_country_code_and_country(
s_country_code=my_who_import.country_code,
s_country=my_who_import.country
my_country = WhoCountry.find_by_location_code_and_location(
location_code=my_who_import.country_code,
location=my_who_import.country
)
# app.logger.info(" my_country: " + str(my_country))
o = WhoData(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment