Skip to content
Snippets Groups Projects
Commit 72cd7aef authored by thomaswoehlke's avatar thomaswoehlke
Browse files

update data

parent 49daba0f
No related branches found
No related tags found
No related merge requests found
......@@ -404,11 +404,11 @@ def url_owid_continent_one(continent_id: int, page: int = 1):
@app_owid.route('/country/all')
def url_owid_country_all(page: int = 1):
page_info = ApplicationPage(
"Continents "
"Countries "
'OWID'
)
try:
page_data = OwidContinent.get_all_as_page(page)
page_data = OwidCountry.get_all_as_page(page)
except OperationalError:
flash("No data in the database.")
page_data = None
......@@ -423,9 +423,9 @@ def url_owid_country_all(page: int = 1):
def url_owid_country_one(country_id: int, page: int = 1):
owid_country_one = OwidCountry.get_by_id(country_id)
page_info = ApplicationPage(
"continent: " + owid_country_one.location,
"country: " + owid_country_one.location,
'OWID',
"countries for OWID continent " + owid_country_one.region + " "
"data for OWID continent " + owid_country_one.region + " "
)
try:
page_data = OwidData.get_data_for_country(owid_country_one, page)
......
......@@ -7,17 +7,17 @@
<div class="container">
<div class="row">
<div class="col">
{% include 'owid/owid_imported/owid_imported_pagination.html' %}
{% include 'owid/imported/owid_imported_pagination.html' %}
</div>
</div>
<div class="row">
<div class="col">
{% include 'owid/owid_imported/owid_imported_table.html' %}
{% include 'owid/imported/owid_imported_table.html' %}
</div>
</div>
<div class="row">
<div class="col">
{% include 'owid/owid_imported/owid_imported_pagination.html' %}
{% include 'owid/imported/owid_imported_pagination.html' %}
</div>
</div>
</div>
......
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