ramp_database.tools.event.get_problem

ramp_database.tools.event.get_problem(session, problem_name)

Get problem from the database.

Parameters
sessionsqlalchemy.orm.Session

The session to directly perform the operation on the database.

problem_namestr or None

The name of the problem to query. If None, all the problems will be queried.

Returns
problemramp_database.model.Problem or list of ramp_database.model.Problem

The queried problem.