From de885027b76a18300f2cf62e4833fee6b8ecb7c1 Mon Sep 17 00:00:00 2001 From: Denis Tereshkin Date: Sun, 5 Mar 2017 21:00:15 +0700 Subject: [PATCH] Fix parsing last_store --- views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views.py b/views.py index 137e59b..a5632d1 100644 --- a/views.py +++ b/views.py @@ -29,7 +29,7 @@ def overview(request): last_store = r.get(robot.instanceId + ":last_store") if last_store is not None: - last_store = datetime.datetime.utcfromtimestamp(float(last_store)) + last_store = datetime.datetime.utcfromtimestamp(float(str(last_store, 'utf-8')[:-1])) index += 1 robot_states.append((index, robot.instanceId, json.dumps(state, sort_keys=True, indent=2, separators=(',', ': ')), positions, last_store))