Esempio n. 1
0
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
Esempio n. 2
0
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
Esempio n. 3
0
def end_game():
    play_sound('warning')
Esempio n. 4
0
def end_match():
    end_match_lighting()
    play_sound('end')
    time.sleep(5)
    prematch_lighting()
Esempio n. 5
0
def abort_match():
    play_sound('abort')
    end_match_lighting()
    time.sleep(3)
    prematch_lighting()
Esempio n. 6
0
def end_game():
    play_sound('warning')
Esempio n. 7
0
def end_match():
    end_match_lighting()
    play_sound('end')
    time.sleep(5)
    prematch_lighting()
Esempio n. 8
0
def abort_match():
    play_sound('abort')
    end_match_lighting()
    time.sleep(3)
    prematch_lighting()