Spaces:
Sleeping
Sleeping
Vaishak G Kumar
commited on
Update src/mapper/parser.py
Browse files- src/mapper/parser.py +4 -3
src/mapper/parser.py
CHANGED
@@ -10,11 +10,12 @@ class MapperParser:
|
|
10 |
return task
|
11 |
|
12 |
@staticmethod
|
13 |
-
def parse_teammapper_response(response):
|
14 |
"""Parses the response from the teammapper and returns the team name."""
|
15 |
if not response or 'Team' not in response:
|
16 |
-
return "
|
17 |
team_info = response['Team']
|
18 |
for team, is_selected in team_info.items():
|
19 |
if is_selected:
|
20 |
-
return team
|
|
|
|
10 |
return task
|
11 |
|
12 |
@staticmethod
|
13 |
+
def parse_teammapper_response(response, default_team="DefaultTeam"):
|
14 |
"""Parses the response from the teammapper and returns the team name."""
|
15 |
if not response or 'Team' not in response:
|
16 |
+
return "consultingteam"
|
17 |
team_info = response['Team']
|
18 |
for team, is_selected in team_info.items():
|
19 |
if is_selected:
|
20 |
+
return team
|
21 |
+
return "consultingteam"
|