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 typing import Optional
|
||||||
from pydantic import BaseModel, ConfigDict, Field
|
from pydantic import BaseModel, ConfigDict, Field
|
||||||
from ..libvirt.dom.stats import Stats, Memory
|
from ..libvirt.dom.stats import Stats, Memory
|
||||||
|
@ -16,4 +16,4 @@ class Stats(Stats):
|
||||||
class MongoStats(Stats):
|
class MongoStats(Stats):
|
||||||
model_config = ConfigDict(arbitrary_types_allowed=True)
|
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')
|
2
setup.py
2
setup.py
|
@ -2,7 +2,7 @@ from setuptools import find_packages, setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='deevirt_schema',
|
name='deevirt_schema',
|
||||||
version='0.1.15',
|
version='0.1.16',
|
||||||
description='Deevirt Schema',
|
description='Deevirt Schema',
|
||||||
url='https://git.celeonet.fr/Deevirt/deevirt_schema.git',
|
url='https://git.celeonet.fr/Deevirt/deevirt_schema.git',
|
||||||
author='Celeonet',
|
author='Celeonet',
|
||||||
|
|
Loading…
Reference in New Issue