Return the referenced team
(params,team_uid)
| 463 | |
| 464 | |
| 465 | def get_team(params,team_uid): |
| 466 | """Return the referenced team """ |
| 467 | team_uid = team_uid.strip() |
| 468 | |
| 469 | if not team_uid: |
| 470 | logging.warning('No team UID provided') |
| 471 | return |
| 472 | |
| 473 | if not params.team_cache: |
| 474 | logging.warning('No team cache. Sync down first.') |
| 475 | return |
| 476 | |
| 477 | if team_uid not in params.team_cache: |
| 478 | logging.warning('Team UID not found.') |
| 479 | return |
| 480 | |
| 481 | cached_team = params.team_cache[team_uid] |
| 482 | team = Team(team_uid) |
| 483 | team.load(cached_team) |
| 484 | |
| 485 | return team |
| 486 | |
| 487 | |
| 488 | def search_records(params, searchstring): |
no test coverage detected