def init(): play_sound('start') match = ScoringSystem.objects.all()[0].current_match match.reset() ScoringDevice.objects.all().update(on_center=False) match.actual_start = tz_aware_now() match.save() start_match_lighting() us = get_microseconds() return match, us
def end_game(): play_sound('warning')
def end_match(): end_match_lighting() play_sound('end') time.sleep(5) prematch_lighting()
def abort_match(): play_sound('abort') end_match_lighting() time.sleep(3) prematch_lighting()