putain de pydantic de Mer....
This commit is contained in:
parent
8300dcba26
commit
669c5f5208
|
@ -1,4 +1,4 @@
|
|||
import datetime
|
||||
import time, datetime
|
||||
from typing import Optional
|
||||
from pydantic import BaseModel, ConfigDict, Field
|
||||
from ..libvirt.dom.stats import Stats, Memory
|
||||
|
@ -16,4 +16,4 @@ class Stats(Stats):
|
|||
class MongoStats(Stats):
|
||||
model_config = ConfigDict(arbitrary_types_allowed=True)
|
||||
|
||||
created_at: datetime = Field(default=datetime.datetime.now(datetime.timezone.utc), alias='created_at')
|
||||
created_at: int = Field(default=time.time(), alias='created_at')
|
Loading…
Reference in New Issue