Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flask-covid19
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Wöhlke
flask-covid19
Commits
60bf83af
Commit
60bf83af
authored
3 years ago
by
thomaswoehlke
Browse files
Options
Downloads
Patches
Plain Diff
Refactoring: vaccination
parent
178f384c
No related branches found
No related tags found
1 merge request
!162
Refactoring 2021 05 20 start
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/flask_covid19/blueprints/data_ecdc/ecdc_views.py
+2
-2
2 additions, 2 deletions
src/flask_covid19/blueprints/data_ecdc/ecdc_views.py
with
2 additions
and
2 deletions
src/flask_covid19/blueprints/data_ecdc/ecdc_views.py
+
2
−
2
View file @
60bf83af
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment