Feat: no half_point rounding in converting level to score
This commit is contained in:
parent
6fb11cb054
commit
409b80994a
@ -44,7 +44,8 @@ def score_to_mark(x):
|
|||||||
if x[COLUMNS["is_leveled"]]:
|
if x[COLUMNS["is_leveled"]]:
|
||||||
if x[COLUMNS["score"]] not in [0, 1, 2, 3]:
|
if x[COLUMNS["score"]] not in [0, 1, 2, 3]:
|
||||||
raise ValueError(f"The evaluation is out of range: {x[COLUMNS['score']]} at {x}")
|
raise ValueError(f"The evaluation is out of range: {x[COLUMNS['score']]} at {x}")
|
||||||
return round_half_point(x[COLUMNS["score"]] * x[COLUMNS["score_rate"]] / 3)
|
#return round_half_point(x[COLUMNS["score"]] * x[COLUMNS["score_rate"]] / 3)
|
||||||
|
return round(x[COLUMNS["score"]] * x[COLUMNS["score_rate"]] / 3, 2)
|
||||||
|
|
||||||
if x[COLUMNS["score"]] > x[COLUMNS["score_rate"]]:
|
if x[COLUMNS["score"]] > x[COLUMNS["score_rate"]]:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
|
Loading…
Reference in New Issue
Block a user