diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-10-16 21:08:59 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-10-16 21:08:59 -0700 |
commit | 495c82bf5da53eabc544a36d2128d3d305223702 (patch) | |
tree | 9e4dfb5572fe2b796c658456db1f5546f580730e /fatcat_scholar/schema.py | |
parent | f7fcb8feb363c4441cf3b37cc3811ca302ad9cca (diff) | |
parent | 31338c53df780cf04318ffceaa033f17614a6d62 (diff) | |
download | fatcat-scholar-495c82bf5da53eabc544a36d2128d3d305223702.tar.gz fatcat-scholar-495c82bf5da53eabc544a36d2128d3d305223702.zip |
Merge branch 'bnewbold-update-workers'
Diffstat (limited to 'fatcat_scholar/schema.py')
-rw-r--r-- | fatcat_scholar/schema.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fatcat_scholar/schema.py b/fatcat_scholar/schema.py index db3b668..5637e0a 100644 --- a/fatcat_scholar/schema.py +++ b/fatcat_scholar/schema.py @@ -34,11 +34,13 @@ class IntermediateBundle(BaseModel): pdftotext_fulltext: Optional[Dict[str, Any]] pdf_meta: Optional[Dict[str, Any]] sim_fulltext: Optional[Dict[str, Any]] + fetched: Optional[datetime.datetime] class Config: arbitrary_types_allowed = True json_encoders = { ReleaseEntity: lambda re: entity_to_dict(re), + datetime.datetime: lambda dt: dt.isoformat(), } |