Skip to content

Commit

Permalink
Ordering by summary when non recurring event
Browse files Browse the repository at this point in the history
  • Loading branch information
lmorillas committed Apr 27, 2015
1 parent d8d0cac commit 2935b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extract_calendars.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def select_first_event(eventlist):
'''select only the first enven when repeated events'''

def sort_by_eventID(element):
return element.get('recurringEventId', element.get('id'))
return element.get('recurringEventId', element.get('summary'))

#recurring = itemgetter('recurringEventId') # keyerror ?

Expand Down

0 comments on commit 2935b21

Please sign in to comment.