Skip to content

Commit b84c09f

Browse files
committed
hack: multiply float point values by 10 to keep more info
1 parent 003baa1 commit b84c09f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

backend/src/utils/import_file/import_file.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ def _get_int(
3838
result: ImportedRecord, field: Literal["position", "filePoints"]
3939
) -> int:
4040
try:
41-
return round(float(result[field] or 0))
41+
if "." in result[field]:
42+
return round(float(result[field] or 0) * 10)
43+
else:
44+
return int(result[field] or 0)
4245
except (ValueError, KeyError):
4346
return 0
4447

0 commit comments

Comments
 (0)