Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7147827
D1886.id6325.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
400 B
Subscribers
None
D1886.id6325.diff
View Options
diff --git a/swh/model/model.py b/swh/model/model.py
--- a/swh/model/model.py
+++ b/swh/model/model.py
@@ -227,6 +227,8 @@
rel = attr.asdict(self)
rel['date'] = self.date.to_dict() if self.date is not None else None
rel['target_type'] = rel['target_type'].value
+ if rel['metadata'] is None:
+ del rel['metadata']
return rel
@classmethod
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 23, 1:28 AM (16 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3227618
Attached To
D1886: Remove release metadata from serialization if it's None.
Event Timeline
Log In to Comment