Skip to content

Commit

Permalink
Provenance created_at fix (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Feb 28, 2024
1 parent aa9d938 commit abb8b2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions emmet-core/emmet/core/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ class ProvenanceDoc(PropertyDoc):
" of this material for the entry closest matching the material input",
)

@field_validator("created_at", mode="before")
@classmethod
def handle_datetime(cls, v):
return convert_datetime(cls, v)

@field_validator("authors")
@classmethod
def remove_duplicate_authors(cls, authors):
Expand Down

0 comments on commit abb8b2f

Please sign in to comment.