look for liaison using team.lower()

The wiki module normalizes the team names in the table by converting
them to lower case. Do the same when we look up the team to ensure we
find teams with mixed or upper case names in the wiki page.

Change-Id: I09c0ce4051b84084e2a3b7a186ec9e6efb10cdf0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-01-15 11:26:13 -05:00
parent 5f76f75804
commit 09043dcf35

View File

@ -86,7 +86,7 @@ class Team(object):
if self._liaison_data is None:
# Only hit the wiki page one time.
Team._liaison_data = wiki.get_liaison_data()
team_liaison = self._liaison_data.get(self.name, {})
team_liaison = self._liaison_data.get(self.name.lower(), {})
return (team_liaison.get('Liaison'),
team_liaison.get('IRC Handle'))