putain de pydantic de Mer....

This commit is contained in:
Jonathan Gohier 2024-11-07 17:28:21 +01:00
parent 8300dcba26
commit 669c5f5208
2 changed files with 3 additions and 3 deletions

View File

@ -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')

View File

@ -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',