aboutsummaryrefslogtreecommitdiffstats
path: root/backend/models
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2020-12-17 09:44:07 +0300
committerGravatar GitHub <[email protected]>2020-12-17 09:44:07 +0300
commit1d28213cccbac6e300781ab2fc30affa480242ac (patch)
tree173d5e2054d124b1f9f9f439cd16802cc0b31be7 /backend/models
parentFixes DB Timestamp on Return (diff)
Update backend/models/form_response.py
Co-authored-by: ks129 <[email protected]>
Diffstat (limited to 'backend/models')
-rw-r--r--backend/models/form_response.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/models/form_response.py b/backend/models/form_response.py
index 8a4da28..0da7b15 100644
--- a/backend/models/form_response.py
+++ b/backend/models/form_response.py
@@ -18,7 +18,7 @@ class FormResponse(BaseModel):
timestamp: str
@validator("timestamp", pre=True)
- def set_timestamp(cls, iso_string: str) -> str:
+ def set_timestamp(cls, iso_string: t.Optional[str]) -> t.Optional[str]:
if iso_string is None:
return datetime.datetime.now(tz=datetime.timezone.utc).isoformat()