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

start DEV 0.0.15

parent f453ca71
No related branches found
No related tags found
No related merge requests found
...@@ -71,8 +71,7 @@ class VaccinationData(db.Model): ...@@ -71,8 +71,7 @@ class VaccinationData(db.Model):
@classmethod @classmethod
def get_all_as_page(cls, page): def get_all_as_page(cls, page):
return db.session.query(cls).left_join()\ return db.session.query(cls)\
.order_by(cls.date_reported)\
.paginate(page, per_page=ITEMS_PER_PAGE) .paginate(page, per_page=ITEMS_PER_PAGE)
@classmethod @classmethod
......
...@@ -73,7 +73,6 @@ class VaccinationImport(db.Model): ...@@ -73,7 +73,6 @@ class VaccinationImport(db.Model):
def get_date_rep(cls): def get_date_rep(cls):
return db.session.query(cls)\ return db.session.query(cls)\
.options(defer('*'), undefer("datum")) \ .options(defer('*'), undefer("datum")) \
.oder_by(cls.datum)\
.group_by(cls.datum)\ .group_by(cls.datum)\
.distinct()\ .distinct()\
.all() .all()
......
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