ramp_database.model.EventScoreType

class ramp_database.model.EventScoreType(event, score_type_object)

EventScoreType table.

This is a many-to-one relationship between Event and ScoreType. Stores the ScoresTypes for each event. For each Event / ScoreType combo, also a new record in ScoreType is created, which is not that useful (TODO consider removing ScoreType table)

Parameters
eventramp_database.model.Event

The event instance.

score_type_objectrampwf.score_types

A scoring instance.

Attributes
idint

The ID of the table row.

namestr

The name of the score.

event_idint

The ID of the event associated.

eventramp_database.model.Event

The event instance.

score_type_idint

The ID of the score.

score_typeramp_database.model.ScoreType

The score type instance.

precisionint

The numerical precision of the score.

submissionslist of ramp_database.model.SubmissionScore

A back-reference of the submissions for the event/score type.

__init__(event, score_type_object)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.