We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e596ba9 commit 7e7f846Copy full SHA for 7e7f846
vulnerabilities/importer.py
@@ -63,7 +63,10 @@ def to_dict(self):
63
"scoring_elements": self.scoring_elements,
64
}
65
if self.published_at:
66
- data["published_at"] = self.published_at.isoformat()
+ if isinstance(self.published_at, datetime.datetime):
67
+ data["published_at"] = self.published_at.isoformat()
68
+ else:
69
+ data["published_at"] = self.published_at
70
return data
71
72
def __lt__(self, other):
0 commit comments