diff --git a/main.py b/main.py index 2cdc997..43eeb6b 100755 --- a/main.py +++ b/main.py @@ -173,7 +173,7 @@ for r in res: t = tokenizer.replace_variables(tokens, list(r)) #tokenizer.print_token_list(t) result = calc_engine.calculate_results(t) - if result <= int(exp.wrong_response(1 + tolerance)) and result >= int(exp.wrong_response(1 - tolerance)): + if result <= int(exp.wrong_response * (1 + tolerance)) and result >= int(exp.wrong_response * (1 - tolerance)): if not result in answers: answers[result] = t #if result <= tol and result >= int(exp.wrong_response - exp.wrong_response * tolerance):