ramp_database.tools.submission.add_submission

ramp_database.tools.submission.add_submission(session, event_name, team_name, submission_name, submission_path)

Create a submission in the database and returns an handle.

Parameters
sessionsqlalchemy.orm.Session

The session to directly perform the operation on the database.

event_namestr

The event associated to the submission.

team_namestr

The team associated to the submission.

submission_namestr

The name to give to the current submission.

submission_pathstr

The path of the files associated to the current submission. It will corresponds to the key ramp_kit_subissions_dir of the dictionary created with ramp_utils.generate_ramp_config.

Returns
submissionramp_database.model.Submission

The newly created submission.