Skip to content
Snippets Groups Projects
Commit 60bf83af authored by thomaswoehlke's avatar thomaswoehlke
Browse files

Refactoring: vaccination

parent 178f384c
No related branches found
No related tags found
1 merge request!162Refactoring 2021 05 20 start
...@@ -74,7 +74,7 @@ def url_ecdc_date_reported_all(page=1): ...@@ -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): def url_ecdc_date_reported_one_notification_rate(europe_date_reported_id, page=1):
page_info = WebPageContent('Europe', "date_reported") page_info = WebPageContent('Europe', "date_reported")
europe_date_reported = EcdcDateReported.get_by_id(europe_date_reported_id) 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( return render_template(
'ecdc/date_reported/notification/ecdc_date_reported_one_notification_rate.html', 'ecdc/date_reported/notification/ecdc_date_reported_one_notification_rate.html',
europe_date_reported=europe_date_reported, europe_date_reported=europe_date_reported,
...@@ -124,7 +124,7 @@ def url_ecdc_continent_all(page=1): ...@@ -124,7 +124,7 @@ def url_ecdc_continent_all(page=1):
def url_ecdc_continent_one(continent_id, page=1): def url_ecdc_continent_one(continent_id, page=1):
page_info = WebPageContent('Europe', "continent") page_info = WebPageContent('Europe', "continent")
continent = EcdcContinent.get_by_id(continent_id) 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( return render_template(
'ecdc/continent/one/ecdc_continent_one.html', 'ecdc/continent/one/ecdc_continent_one.html',
continent=continent, continent=continent,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment