Fix bug in Github trigger set up flow

This commit is contained in:
Kyle Brown 2017-10-18 17:28:08 -07:00
parent ce1d2b6637
commit b8f5a9a22d

View file

@ -292,10 +292,11 @@ class GithubBuildTrigger(BuildTriggerHandler):
}
for org in usr.get_orgs():
namespaces[org.name] = {
organization = org.login if org.login else org.name
namespaces[organization] = {
'personal': False,
'id': org.login,
'title': org.name or org.login,
'id': organization,
'title': organization,
'avatar_url': org.avatar_url,
'url': org.html_url,
'score': org.plan.private_repos if org.plan else 0,