Skip to content

Commit

Permalink
fixed create_teams using github-education-resources#110
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldave committed Sep 4, 2015
1 parent d40a3d9 commit dbb1d1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/teachers_pet/actions/create_student_teams.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ def create_student_teams
if team
puts "Team @#{org_login}/#{team_name} already exists."
else
team = JSON.parse(self.client.create_team(org_login, team_name))
team.symbolize_keys!
retv = self.client.create_team(org_login, team_name)
teams_by_name = self.client.existing_teams_by_name(org_login)
+ team = teams_by_name[team_name]`
end
self.client.add_users_to_team(org_login, team, usernames)
end
Expand Down

0 comments on commit dbb1d1d

Please sign in to comment.