Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
A stats class was created to implement aggregation
  • Loading branch information
shaynmorgan committed Jul 25, 2021
commit 23a5136c8bcd6669d29acdb51b90cdb1f28be250
10 changes: 6 additions & 4 deletions app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@

from pydantic import BaseModel, validator


class Stats:
confirmed: int
deaths: int
recovered: int

class Latest(BaseModel):
"""
Latest model.
"""

confirmed: int
deaths: int
recovered: int
stats: Stats


class LatestResponse(BaseModel):
Expand Down