Skip to content

Commit

Permalink
For #65 make sure timestamp is an int
Browse files Browse the repository at this point in the history
  • Loading branch information
jimboca committed Dec 24, 2020
1 parent d7426b1 commit 4d93235
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodes/Controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4d93235

Please sign in to comment.