We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 003baa1 commit b84c09fCopy full SHA for b84c09f
1 file changed
backend/src/utils/import_file/import_file.py
@@ -38,7 +38,10 @@ def _get_int(
38
result: ImportedRecord, field: Literal["position", "filePoints"]
39
) -> int:
40
try:
41
- return round(float(result[field] or 0))
+ if "." in result[field]:
42
+ return round(float(result[field] or 0) * 10)
43
+ else:
44
+ return int(result[field] or 0)
45
except (ValueError, KeyError):
46
return 0
47
0 commit comments