diff --git a/src/covid19/blueprints/vaccination/vaccination_model.py b/src/covid19/blueprints/vaccination/vaccination_model.py index 17ea34ae5a5ee5b0320d594bb3842470a6478fca..42265a38938151b008cdd09d352c03271c34ee33 100644 --- a/src/covid19/blueprints/vaccination/vaccination_model.py +++ b/src/covid19/blueprints/vaccination/vaccination_model.py @@ -71,8 +71,7 @@ class VaccinationData(db.Model): @classmethod def get_all_as_page(cls, page): - return db.session.query(cls).left_join()\ - .order_by(cls.date_reported)\ + return db.session.query(cls)\ .paginate(page, per_page=ITEMS_PER_PAGE) @classmethod diff --git a/src/covid19/blueprints/vaccination/vaccination_model_import.py b/src/covid19/blueprints/vaccination/vaccination_model_import.py index 1427399a01e5435b6772acb3fdc5b8f9e1240407..0931f45f8e0f7ea64a81885500b5c4508695e372 100644 --- a/src/covid19/blueprints/vaccination/vaccination_model_import.py +++ b/src/covid19/blueprints/vaccination/vaccination_model_import.py @@ -73,7 +73,6 @@ class VaccinationImport(db.Model): def get_date_rep(cls): return db.session.query(cls)\ .options(defer('*'), undefer("datum")) \ - .oder_by(cls.datum)\ .group_by(cls.datum)\ .distinct()\ .all()