ramp_database.tools.user.add_user_interaction

ramp_database.tools.user.add_user_interaction(session, interaction=None, user=None, problem=None, event=None, ip=None, note=None, submission=None, submission_file=None, diff=None, similarity=None)

Add a user interaction in the database.

Parameters
sessionsqlalchemy.orm.Session

The session to directly perform the operation on the database.

interactionsNone or str, default is None

The type of interaction.

userNone or ramp_database.model.User, default is None

The user instance.

problemNone or ramp_database.model.Problem, default is None

The problem instance.

eventNone or ramp_database.model.Event, default is None

The event instance.

ipNone or str, default is None

The ip address from the server.

noteNone or str, default is None

Some notes.

submissionNone or ramp_database.model.Submission, default is None

The submission instance.

submission_fileNone or ramp_database.model.SubmissionFile, default is None

The submission file instance.

diffNone or str, default is None

The difference between two submissions.

similarityNone or float, default is None

The similarity of the submission.