Skip to content

Commit

Permalink
fixes invalid newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
marksilvis committed Nov 9, 2017
1 parent b13b7d2 commit 4ccc368
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pittgrub/db/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ccc368

Please sign in to comment.