aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat_scholar')
-rw-r--r--fatcat_scholar/schema.py2
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(),
}