ramp_database.tools.event
.get_problem¶
-
ramp_database.tools.event.
get_problem
(session, problem_name)¶ Get problem from the database.
- Parameters
- session
sqlalchemy.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.
- session
- Returns
- problem
ramp_database.model.Problem
or list oframp_database.model.Problem
The queried problem.
- problem