From 60bf83af283ceea31b0c9609d201dc56fa38066f Mon Sep 17 00:00:00 2001
From: thomaswoehlke <thomas.woehlke@gmail.com>
Date: Thu, 27 May 2021 00:38:15 +0200
Subject: [PATCH] Refactoring: vaccination

---
 src/flask_covid19/blueprints/data_ecdc/ecdc_views.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/flask_covid19/blueprints/data_ecdc/ecdc_views.py b/src/flask_covid19/blueprints/data_ecdc/ecdc_views.py
index 9ea7c67d..5f3bcf69 100644
--- a/src/flask_covid19/blueprints/data_ecdc/ecdc_views.py
+++ b/src/flask_covid19/blueprints/data_ecdc/ecdc_views.py
@@ -74,7 +74,7 @@ def url_ecdc_date_reported_all(page=1):
 def url_ecdc_date_reported_one_notification_rate(europe_date_reported_id, page=1):
     page_info = WebPageContent('Europe', "date_reported")
     europe_date_reported = EcdcDateReported.get_by_id(europe_date_reported_id)
-    page_data = EcdcData.find_by_date_reported_notification_rate(europe_date_reported, page)
+    page_data = EcdcData.get_by_date_reported_notification_rate(europe_date_reported, page)
     return render_template(
         'ecdc/date_reported/notification/ecdc_date_reported_one_notification_rate.html',
         europe_date_reported=europe_date_reported,
@@ -124,7 +124,7 @@ def url_ecdc_continent_all(page=1):
 def url_ecdc_continent_one(continent_id, page=1):
     page_info = WebPageContent('Europe', "continent")
     continent = EcdcContinent.get_by_id(continent_id)
-    page_data = EcdcCountry.find_by_continent(continent, page)
+    page_data = EcdcCountry.find_by_location_group(continent, page)
     return render_template(
         'ecdc/continent/one/ecdc_continent_one.html',
         continent=continent,
-- 
GitLab