From 8bfb459a5d9145ad4b6cf18ab415a71ae0163c5e Mon Sep 17 00:00:00 2001
From: thomaswoehlke <thomas.woehlke@gmail.com>
Date: Sun, 25 Apr 2021 23:01:02 +0200
Subject: [PATCH] working on 0.0.31 Release *
 ------------------------------------- * Fixed #211 ECDC-templates: change URL
 to for_url() * Fixed #213 WHO-template: change URL to for_url() *
 ------------------------------------- * Issue #195
 RkiVaccinationImport.get_daterep_missing_in_vaccination_data(): native SQL to
 SQLalechemy Query * Fixed #83  WhoImport.get_new_dates_as_array() SQLalchemy
 instead of SQL * Fixed #219 WhoImport.countries() SQLalchemy instead of SQL *
 ------------------------------------- * Issue #207 remove deprecated:
 database.port * Issue #208 remove deprecated: database.run_run_with_debug *
 Issue #209 remove deprecated: database.ITEMS_PER_PAGE *
 ------------------------------------- * Issue #210 database.py: logging for
 Celery on Windows * ------------------------------------- * Fixed #196
 OwidImport.get_new_dates_reported_as_array() needs implementation *
 ------------------------------------- * Issue #212 implement
 OwidService.task_database_drop_create() *
 ------------------------------------- * Issue #214 implement
 OwidServiceUpdate.update_dimension_tables_only() * Issue #215 implement
 OwidServiceUpdate.update_fact_table_incremental_only() * Issue #216 implement
 OwidServiceUpdate.update_fact_table_initial_only() * Issue #217 implement
 OwidServiceUpdate.update_star_schema_incremental() * Issue #218 implement
 OwidServiceUpdate.update_star_schema_initial() *
 -------------------------------------

---
 src/covid19/blueprints/owid/owid_service_update.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/covid19/blueprints/owid/owid_service_update.py b/src/covid19/blueprints/owid/owid_service_update.py
index 549d5aa8..7b360614 100644
--- a/src/covid19/blueprints/owid/owid_service_update.py
+++ b/src/covid19/blueprints/owid/owid_service_update.py
@@ -48,7 +48,8 @@ class OwidServiceUpdate:
     def __update_fact_table_incremental(self):
         app.logger.info(" __update_fact_tables_incremental [begin]")
         app.logger.info("------------------------------------------------------------")
-        new_dates_reported_from_import = OwidImport.get_new_dates_reported_as_array()
+        #new_dates_reported_from_import = OwidImport.get_new_dates_reported_as_array()
+        new_dates_reported_from_import = self.who_import_get_new_dates_as_array()
         i = 0
         for my_date_reported in new_dates_reported_from_import:
             my_OwidDateReported = OwidDateReported.find_by_date_reported(my_date_reported)
-- 
GitLab