diff --git a/src/covid19/blueprints/owid/owid_service_update.py b/src/covid19/blueprints/owid/owid_service_update.py index 025ab78d3a2990444691b40ec0f3f1c775d0f9f8..65eb41ed7a95f29c99ae8f864fb7f70831c57ff6 100644 --- a/src/covid19/blueprints/owid/owid_service_update.py +++ b/src/covid19/blueprints/owid/owid_service_update.py @@ -181,7 +181,7 @@ class OwidServiceUpdate: ) db.session.add(my_OwidCountry) db.session.commit() - my_OwidCountry = OwidCountry.find_by_iso_code( + my_OwidCountry = OwidCountry.find_by_iso_code_and_location( iso_code=oi.iso_code, location=oi.location ) @@ -285,8 +285,8 @@ class OwidServiceUpdate: app.logger.info(" update_star_schema_initial [begin]") app.logger.info("------------------------------------------------------------") # TODO - # self.__update_dimension_tables() - # self.__update_fact_table_initial() + self.__update_dimension_tables() + self.__update_fact_table_initial() app.logger.info(" update_star_schema_initial [done]") app.logger.info("------------------------------------------------------------") return self