Skip to content

Commit

Permalink
Date format is not required (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasyu888 authored Aug 4, 2021
1 parent 55fa643 commit e0a6ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/openapi_server/dbmodels/text_date_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class TextDateAnnotation(EmbeddedDocument):
length = IntField(required=True)
text = StringField(required=True)
confidence = FloatField(required=True)
dateFormat = StringField(required=True)
dateFormat = StringField(required=False)

def to_dict(self):
doc = self.to_mongo().to_dict()
Expand Down

0 comments on commit e0a6ab0

Please sign in to comment.