Feat: stop rounding score at 0.5
This commit is contained in:
parent
84fcee625d
commit
c057fa11e7
@ -49,7 +49,8 @@ def score_to_mark(x):
|
|||||||
raise ValueError(
|
raise ValueError(
|
||||||
f"The evaluation is out of range: {x[COLUMNS['score']]} at {x}"
|
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(x[COLUMNS["score"]] * x[COLUMNS["score_rate"]] / 3, 2)
|
||||||
|
#return round_half_point(x[COLUMNS["score"]] * x[COLUMNS["score_rate"]] / 3)
|
||||||
|
|
||||||
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