Skip to content

Commit cdbf421

Browse files
committed
Use date in stats schema
1 parent 581f52a commit cdbf421

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/schemas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from datetime import datetime
3+
from datetime import datetime, date
44
from enum import Enum
55
from typing import Optional, List
66

@@ -64,7 +64,7 @@ def from_db(db_entry: models.School) -> School:
6464
class Statistic(BaseModel):
6565
state: State
6666
count: int
67-
last_updated: str
67+
last_updated: date
6868
model_config = ConfigDict(json_schema_extra={
6969
"example": [{
7070
"name": "BE",

0 commit comments

Comments
 (0)