ramp_database.tools.user.get_team_by_name

ramp_database.tools.user.get_team_by_name(session, name)

Get a team by its name.

Parameters
sessionsqlalchemy.orm.Session

The session to directly perform the operation on the database.

namestr or None

The name of the team. If None, all teams will be queried.

Returns
teamramp_database.model.Team or list of ramp_database.model.Team

The queried team.