diff --git a/src/flask_covid19/blueprints/data_ecdc/ecdc_service_update.py b/src/flask_covid19/blueprints/data_ecdc/ecdc_service_update.py index ae73041c5491708b9d4fc691507f36b0f054a273..c53d6302015c3cb4a4ed088c8ffcc0d9c543be05 100644 --- a/src/flask_covid19/blueprints/data_ecdc/ecdc_service_update.py +++ b/src/flask_covid19/blueprints/data_ecdc/ecdc_service_update.py @@ -66,7 +66,7 @@ class EcdcServiceUpdateFull(EcdcServiceUpdateBase): EcdcData.remove_all() EcdcCountry.remove_all() self.__full_update_continent() - all_continents = EcdcContinent.get_all() + all_continents = EcdcContinent.find_all() k = 0 for my_continent in all_continents: result_countries_of_continent = EcdcImport.get_countries_of_continent(my_continent) @@ -132,7 +132,7 @@ class EcdcServiceUpdateFull(EcdcServiceUpdateBase): i = 0 k = 0 d = 0 - for ecdc_datereported in EcdcDateReported.get_all(): + for ecdc_datereported in EcdcDateReported.find_all(): ecdc_datereported_str = ecdc_datereported.date_reported_import_str for ecdc_import in EcdcImport.find_by_date_reported(ecdc_datereported_str): ecdc_country = EcdcCountry.get_by( diff --git a/src/flask_covid19/blueprints/data_vaccination/vaccination_service_update.py b/src/flask_covid19/blueprints/data_vaccination/vaccination_service_update.py index c1bfab6e4941ec6c7116e3329ae3b2a74442a1a5..fcdd0e2c6187ed46b645277b407b1d49bfbb6d32 100644 --- a/src/flask_covid19/blueprints/data_vaccination/vaccination_service_update.py +++ b/src/flask_covid19/blueprints/data_vaccination/vaccination_service_update.py @@ -44,7 +44,7 @@ class VaccinationServiceUpdateFull(VaccinationServiceUpdateBase): i = 0 for item_date_rep, in result_date_rep: d = VaccinationDateReported.get_by_datum( - d_datum=item_date_rep + datum=item_date_rep ) for item_import in VaccinationImport.find_by_datum(d.date_reported_import_str): o = VaccinationData(