Skip to content
Snippets Groups Projects
Verified Commit f349bdc6 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

swh.model.model.OriginVisit: Drop the dateutil.parser.parse use

parent ba0c4e19
No related branches found
No related tags found
No related merge requests found
......@@ -252,14 +252,6 @@ class OriginVisit(BaseModel):
del ov["visit"]
return ov
@classmethod
def from_dict(cls, d):
"""Parses the date from a string, and accepts missing visit ids."""
if isinstance(d["date"], str):
d = d.copy()
d["date"] = dateutil.parser.parse(d["date"])
return super().from_dict(d)
@attr.s(frozen=True)
class OriginVisitStatus(BaseModel):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment