Skip to content

Commit

Permalink
Fix silly typos causing certain meetings from being omitted
Browse files Browse the repository at this point in the history
  • Loading branch information
cydrobolt committed Jan 30, 2016
1 parent 17fe376 commit b852b3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mote/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,12 @@ def search_sugg():
for cmk in channel_meetings:
if res_num >= display_num:
break

if search_term in cmk:
friendly_name = get_friendly_name(cmk) or "A friendly meeting group."

try:
dates, latest = get_arrow_dates(team_meetings[cmk])
dates, latest = get_arrow_dates(channel_meetings[cmk])
except KeyError:
continue

Expand Down
2 changes: 1 addition & 1 deletion mote/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ def get_arrow_dates(team_meetings):
raise KeyError("Unavailable dates.")

dates.sort()
latest = dates.pop()
latest = dates[-1]

return dates, latest

0 comments on commit b852b3e

Please sign in to comment.