Skip to content
Snippets Groups Projects
Commit 18e5f98e authored by thomaswoehlke's avatar thomaswoehlke
Browse files

working for 0.0.198 Release

parent b3ddce21
No related branches found
No related tags found
No related merge requests found
...@@ -120,6 +120,7 @@ class OwidImport(db.Model): ...@@ -120,6 +120,7 @@ class OwidImport(db.Model):
@classmethod @classmethod
def get_continents(cls): def get_continents(cls):
return db.session.query(cls.continent)\ return db.session.query(cls.continent)\
.order_by(cls.date.desc()) \ .group_by(cls.continent) \
.group_by(cls.date) \ .distinct()\
.distinct() .order_by(cls.continent.asc())\
.paginate(page, per_page=ITEMS_PER_PAGE)
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