Skip to content

Commit

Permalink
Merge pull request #3 from toksvaeth/reverse-order
Browse files Browse the repository at this point in the history
Reverse chronological order
  • Loading branch information
sthulb authored May 18, 2021
2 parents c41c984 + a1622f3 commit 139d075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calrules/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, exchange: dict) -> None:

def items(self):
items = []
for item in self.account.inbox.all():
for item in self.account.inbox.all().order_by("-datetime_received"):
if not isinstance(item, MeetingRequest) and not isinstance(item, MeetingCancellation):
continue

Expand Down

0 comments on commit 139d075

Please sign in to comment.