Skip to content

Commit d70e009

Browse files
Update query/operators.py
1 parent 2f17680 commit d70e009

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fise/query/operators.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ def _get_field(field: Field | Size, file: File) -> Any:
5050
"""
5151

5252
if isinstance(field, Size):
53-
# Extracts the size in bytes and converts into the parsed size unit.
54-
return round(file.size / constants.SIZE_CONVERSION_MAP.get(field.unit), 5)
55-
53+
return field.get_size(file)
54+
5655
return getattr(file, field.field)
5756

5857
def get_dataframe(

0 commit comments

Comments
 (0)