Skip to content

Commit ddd5b80

Browse files
committed
Update schema for stats endpoint
1 parent eaea1bd commit ddd5b80

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/schemas.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,17 @@ def from_db(db_entry: models.School) -> School:
6464
class Statistic(BaseModel):
6565
state: State
6666
count: int
67+
last_updated: str
6768
model_config = ConfigDict(json_schema_extra={
6869
"example": [{
6970
"name": "BE",
7071
"count": 10,
72+
"last_updated": "2025-01-01"
7173
},
7274
{"name": "ND",
73-
"count": 12}
75+
"count": 12,
76+
"last_updated": "2025-01-01"
77+
}
7478
]
7579
})
7680

0 commit comments

Comments
 (0)