Merge "zanata_stats: ensure to stringify user elements"

This commit is contained in:
Jenkins 2016-08-05 23:25:09 +00:00 committed by Gerrit Code Review
commit 5cca0511ed
1 changed files with 6 additions and 3 deletions

View File

@ -98,9 +98,12 @@ def _make_language_team(name, team_info):
'tag': 'language_team',
'language_code': name,
'language': team_info['language'],
'translators': team_info['translators'],
'reviewers': team_info.get('reviewers', []),
'coordinators': team_info.get('coordinators', []),
# Zanata ID which only consists of numbers is a valid ID
# and such entry is interpreted as integer unless it is
# quoted in the YAML file. Ensure to stringify them.
'translators': [str(i) for i in team_info['translators']],
'reviewers': [str(i) for i in team_info.get('reviewers', [])],
'coordinators': [str(i) for i in team_info.get('coordinators', [])],
}