Beispiel #1
0
 def add_participant(self, p: Participant):
     p_hash = p.hash()
     if self.participants.get(p_hash) is None:
         self.participants[p_hash] = p
     else:
         self.participants[p_hash].inc_score(p.get_score())
Beispiel #2
0
 def add_participant_event_rating(self, participant: Participant):
     if participant.get_rating() > 0:
         participant_year_rating = self.participants.setdefault(
             participant.hash(), ParticipantYearRating(participant.hash()))
         participant_year_rating.add_event_rating(self.current_event_index,
                                                  participant.get_rating())
Beispiel #3
0
 def add_participant(self, participant: Participant):
     self.participants[participant.hash()] = participant