From 0bd61d61807e36233c1926565d88ecbd3323a774 Mon Sep 17 00:00:00 2001 From: Patrick Bassner Date: Wed, 31 Jul 2024 17:53:22 +0200 Subject: [PATCH] Made timestamp and score fields in SimpleSubmissionDTO optional --- app/domain/data/simple_submission_dto.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/domain/data/simple_submission_dto.py b/app/domain/data/simple_submission_dto.py index 5fb40e15..53b1c9fa 100644 --- a/app/domain/data/simple_submission_dto.py +++ b/app/domain/data/simple_submission_dto.py @@ -1,8 +1,10 @@ +from typing import Optional + from pydantic import BaseModel, Field from datetime import datetime class SimpleSubmissionDTO(BaseModel): - timestamp: datetime = Field(alias="timestamp") - score: float = Field(alias="score") + timestamp: Optional[datetime] = Field(alias="timestamp") + score: Optional[float] = Field(alias="score")