Skip to content

Commit

Permalink
Made timestamp and score fields in SimpleSubmissionDTO optional
Browse files Browse the repository at this point in the history
  • Loading branch information
bassner committed Jul 31, 2024
1 parent f2b04c8 commit 27ed23b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/domain/data/simple_submission_dto.py
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 27ed23b

Please sign in to comment.