-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get record #6
Get record #6
Conversation
build record objects and xml formatted record display for supported record types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor question about the db file.
tests/data/browse.db
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really want to check in this browse.db? How is it created?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied it from the browse repository
oaipmh/serializers/create_records.py
Outdated
@@ -49,15 +51,37 @@ def __init__(self, metadata: List[Metadata]): | |||
version=version.version, | |||
raw='', | |||
submitted_date=version.created, | |||
size_kilobytes=version.source_size//1000, | |||
source_flag=version.source_flags, | |||
size_kilobytes = version.source_size // 1000 if version.source_size else 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A kilobyte is not 1000 bytes. It is 1024.
oaipmh/serializers/create_records.py
Outdated
version=version.version, | ||
raw='', | ||
submitted_date=version.created, | ||
size_kilobytes=version.source_size//1000, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1000 -> 1024
No description provided.