Skip to content

Result score

result.score

song_sync_continuation_score(result, data)

modify previous result and return None

Source code in result/score.py
67
68
69
70
71
72
73
def song_sync_continuation_score(result, data):
    ''' modify previous result and return None'''
    previous_result = result.session.last_result(["recognize"])
    if check_expected_response(result) != result.given_response:
        previous_result.score *= -1
        previous_result.save()
    return None