update MongoStats

This commit is contained in:
Jonathan Gohier 2024-11-08 12:11:05 +01:00
parent 00fe9c67c9
commit d360dfc6b9
1 changed files with 1 additions and 3 deletions

View File

@ -14,6 +14,4 @@ class Stats(Stats):
memory:Memory = Field()
class MongoStats(Stats):
model_config = ConfigDict(arbitrary_types_allowed=True)
created_at: time = Field(default_factory=time.time, alias='created_at')
created_at: Optional[float] = Field(default=None, alias='created_at')