From 4d9323507ee8417cf8d9032a1409c45fa00fcec9 Mon Sep 17 00:00:00 2001 From: JimBoCA Date: Thu, 24 Dec 2020 12:00:29 -0800 Subject: [PATCH] For #65 make sure timestamp is an int --- nodes/Controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/Controller.py b/nodes/Controller.py index ee63127..a9670ff 100644 --- a/nodes/Controller.py +++ b/nodes/Controller.py @@ -331,8 +331,8 @@ def _startRefresh(self,test=False): LOGGER.error("Someone changed the db?") LOGGER.error("{}= {}".format(self._data_tag,self.polyConfig['customData'][self._data_tag])) LOGGER.error("_last_dtns={}".format(self._last_dtns)) - l_dt = datetime.fromtimestamp(self._last_dtns).strftime(self._lock_fmt) - c_dt = datetime.fromtimestamp(self.polyConfig['customData'][self._data_tag]).strftime(self._lock_fmt) + l_dt = datetime.fromtimestamp(int(self._last_dtns)).strftime(self._lock_fmt) + c_dt = datetime.fromtimestamp(int(self.polyConfig['customData'][self._data_tag])).strftime(self._lock_fmt) if c_dt < l_dt: LOGGER.error("But it is older than what we wrote, so will ignore it...") else: