ramp_database.tools.submission
.add_submission_similarity¶
-
ramp_database.tools.submission.
add_submission_similarity
(session, credit_type, user, source_submission, target_submission, similarity, timestamp)¶ Add submission similarity entry.
- Parameters
- session
sqlalchemy.orm.Session
The session to directly perform the operation on the database.
- credit_type{‘target_credit’, ‘source_credit’, ‘thirdparty_credit’}
The type of credit to create.
- user
ramp_database.model.User
The user which adding credit.
- source_submission
ramp_database.model.Submission
The submission inspiring the target submission.
- target_submission
ramp_database.model.Submission
The submission which is being submitted by the
user
.- similarityfloat
The similarity between the two submissions.
- timestampdatetime
The date and time of the creation of the similarity.
- session