Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F6930369
D2885.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D2885.diff
View Options
diff --git a/docs/extrinsic-metadata-specification.rst b/docs/extrinsic-metadata-specification.rst
--- a/docs/extrinsic-metadata-specification.rst
+++ b/docs/extrinsic-metadata-specification.rst
@@ -128,7 +128,7 @@
which adds a new `metadata` byte string obtained from a given authority
and associated to the origin.
- `discovery_date` is an ISO 8601 datetime string.
+ `discovery_date` is a Python datetime.
`authority` must be a dict containing keys `type` and `url`, and
`fetcher` a dict containing keys `name` and `version`.
The authority and fetcher must be known to the storage before using this
@@ -147,7 +147,7 @@
{
'authority': {'type': ..., 'url': ...},
'fetcher': {'name': ..., 'version': ...},
- 'discovery_date': '...',
+ 'discovery_date': ...,
'format': '...',
'metadata': b'...'
}
@@ -169,7 +169,7 @@
{
'authority': {'type': ..., 'url': ...},
'fetcher': {'name': ..., 'version': ...},
- 'discovery_date': '...',
+ 'discovery_date': ...,
'format': '...',
'metadata': b'...'
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 27 2024, 10:20 PM (11 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3220896
Attached To
D2885: Respec discovery_date as a Python datetime instead of an ISO string.
Event Timeline
Log In to Comment