From 45cfe22a23b7111529d0fe9383bd8cea7fda4f8d Mon Sep 17 00:00:00 2001
From: thomaswoehlke <thomas.woehlke@gmail.com>
Date: Sun, 17 Jan 2021 00:37:23 +0100
Subject: [PATCH] ### 0.0.7 Release * Issue #8
 WhoServiceUpdate.update_db_short() * Issue #9 URL: /who/update/short * Issue
 #10 async who_update_short_task * Issue #11
 WhoServiceUpdate.__update_who_global_data_short() * Fixed #12 better layout
 for flash messages

---
 org/woehlke/covid19/who/who_service_update.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/org/woehlke/covid19/who/who_service_update.py b/org/woehlke/covid19/who/who_service_update.py
index b474feff..f21ad566 100644
--- a/org/woehlke/covid19/who/who_service_update.py
+++ b/org/woehlke/covid19/who/who_service_update.py
@@ -148,7 +148,7 @@ class WhoServiceUpdate:
         countries = WhoCountry.get_all_as_dict()
         i = 0
         for my_date_reported in new_dates_reported_from_import:
-            my_date = WhoDateReported(my_date_reported)
+            my_date = WhoDateReported.find_by_date_reported(my_date_reported)
             for result_item in WhoGlobalDataImportTable.get_for_one_day(my_date):
                 my_country = countries[result_item.country_code]
                 result_who_global_data = WhoGlobalData.find_one_or_none_by_date_and_country(
-- 
GitLab