🐛 Fixes dataset

This commit is contained in:
Daniel Svitan 2024-12-17 15:25:00 +01:00
parent 2ec2a533b2
commit d20dcdedef

View File

@ -42,7 +42,15 @@ def parse_gpa(txt: str) -> float:
if is_eu:
txt = txt.replace(",", ".")
return float(txt)
num = float(txt)
while num >= 5:
fixed = input(f"Pleas enter fixed value for '{num}': ")
try:
num = float(fixed)
except ValueError:
pass
return num
def parse_ses(txt: str) -> int: