Skip to content

Commit 4efd021

Browse files
committed
bugfix for blasphemous use of the kilo- prefix
1 parent 220fd48 commit 4efd021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oaipmh/serializers/create_records.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self, metadata: List[Metadata]):
5151
version=version.version,
5252
raw='',
5353
submitted_date=version.created,
54-
size_kilobytes = version.source_size // 1000 if version.source_size else 0,
54+
size_kilobytes = version.source_size // 1024 if version.source_size else 0,
5555
source_flag=self._process_source_format(version.source_format, version.source_flags),
5656
is_current=version.is_current,
5757
source_format=version.source_format

0 commit comments

Comments
 (0)