Vaishak G Kumar commited on
Commit
9ac95bc
·
verified ·
1 Parent(s): 0f03e73

Update src/mapper/parser.py

Browse files
Files changed (1) hide show
  1. 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 "No team identified"
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"