From ab19447da735e0ba32d4e404da98204fa95b173c Mon Sep 17 00:00:00 2001 From: Niklas Date: Wed, 31 Jan 2024 06:42:23 +0100 Subject: [PATCH 1/2] Session - committed_at is now a datetime object, not a string --- fedn/fedn/network/controller/control.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fedn/fedn/network/controller/control.py b/fedn/fedn/network/controller/control.py index fa211f2ae..ecb35bcda 100644 --- a/fedn/fedn/network/controller/control.py +++ b/fedn/fedn/network/controller/control.py @@ -99,9 +99,8 @@ def session(self, config): return self._state = ReducerState.instructing - config["committed_at"] = datetime.datetime.now().strftime( - "%Y-%m-%d %H:%M:%S" - ) + config["committed_at"] = datetime.datetime.now() + self.create_session(config) self._state = ReducerState.monitoring From 8c0a586e8039ccddc02e739b25338ab337dff097 Mon Sep 17 00:00:00 2001 From: Niklas Date: Thu, 1 Feb 2024 10:48:43 +0100 Subject: [PATCH 2/2] lint --- fedn/fedn/network/controller/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedn/fedn/network/controller/control.py b/fedn/fedn/network/controller/control.py index ecb35bcda..c25c4b04f 100644 --- a/fedn/fedn/network/controller/control.py +++ b/fedn/fedn/network/controller/control.py @@ -100,7 +100,7 @@ def session(self, config): self._state = ReducerState.instructing config["committed_at"] = datetime.datetime.now() - + self.create_session(config) self._state = ReducerState.monitoring