diff --git a/pittgrub/db/schema.py b/pittgrub/db/schema.py index 9bd3e3c..e5f94c8 100644 --- a/pittgrub/db/schema.py +++ b/pittgrub/db/schema.py @@ -377,10 +377,7 @@ def __init__(self, id: int=None, organizer: int=None, @classmethod def get_all_newest(cls) -> List['Event']: - entities = db.session.query(cls) - .filter(cls.end_date > datetime.datetime.now()) - .order_by(cls.start_date) - .all() + entities = db.session.query(cls).filter(cls.end_date > datetime.datetime.now()).order_by(cls.start_date).all() return entities @classmethod