Browse files

Fixed ordering of event dates.

  • Loading branch information...
1 parent 0732d4a commit 679158b90d4e75c7eed7ee7f16c01630076df99c Ethan Holda committed May 2, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 controllers/calendar.py
View
3 controllers/calendar.py
@@ -46,7 +46,8 @@ def getCalendar(self, year, month):
def getEvents(self, start, end):
events = self.orm.query(models.Event).filter(and_(models.Event.start_datetime > start,
- models.Event.start_datetime < end))
+ models.Event.start_datetime < end)).\
+ order_by("start_datetime")
return events
def getCurrentYearMonth(self):

0 comments on commit 679158b

Please sign in to comment.