Skip to content

Commit

Permalink
model: add folder to team from/to dict
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed Sep 25, 2020
1 parent eeb42dd commit a4ac605
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/model/team.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def from_dict(cls: Type[T], d: Dict[str, Any]) -> T:
d['github_team_name'],
d.get('display_name', ''))
team.platform = d.get('platform', '')
team.folder = d.get('folder', '')
team.team_leads = set(d.get('team_leads', []))
members = set(d.get('members', []))
for member in members:
Expand Down Expand Up @@ -98,6 +99,7 @@ def place_if_filled(name: str, field: Any):
place_if_filled('platform', team.platform)
place_if_filled('members', team.members)
place_if_filled('team_leads', team.team_leads)
place_if_filled('folder', team.folder)

return tdict

Expand Down

0 comments on commit a4ac605

Please sign in to comment.