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