From 60f3a78e87d185c6bc99714a14a5eb131c2c546b Mon Sep 17 00:00:00 2001 From: "j.gohier" Date: Fri, 8 Nov 2024 09:15:57 +0100 Subject: [PATCH] update mongoStats --- deevirt_schema/api/stats.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deevirt_schema/api/stats.py b/deevirt_schema/api/stats.py index b30a1af..2df0cce 100644 --- a/deevirt_schema/api/stats.py +++ b/deevirt_schema/api/stats.py @@ -16,4 +16,4 @@ class Stats(Stats): class MongoStats(Stats): model_config = ConfigDict(arbitrary_types_allowed=True) - created_at: time = Field(default=time.time(), alias='created_at') \ No newline at end of file + created_at: time = Field(default_factory=time.time(), alias='created_at') \ No newline at end of file diff --git a/setup.py b/setup.py index c159315..4539386 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import find_packages, setup setup( name='deevirt_schema', - version='0.1.17', + version='0.1.18', description='Deevirt Schema', url='https://git.celeonet.fr/Deevirt/deevirt_schema.git', author='Celeonet',