ramp_database.tools.submission
.get_submissions¶
-
ramp_database.tools.submission.
get_submissions
(session, event_name, state='new')¶ Get information about submissions from an event with a specific state optionally.
The information for each dataset is the id, name of the submission, and the files associated with the submission.
- Parameters
- session
sqlalchemy.orm.Session
The session to directly perform the operation on the database.
- event_namestr
The name of the RAMP event.
- stateNone or str, default=’new’
The state of the requested submissions. If None, the state of the submissions will be ignored and all submissions for an event will be fetched.
- session
- Returns
- submissions_infolist of tuple(int, str, list of str)
List of submissions information. Each item is a tuple containing:
an integer containing the id of the submission;
a string with the name of the submission in the database;
a list of string representing the file associated with the submission.
See also
ramp_database.tools.get_submission_by_id
Get a submission using an id.
ramp_database.tools.get_submission_by_name
Get a submission using names.