Browse Source

RedisStorage: properly read int and float values

Helge Jung 9 years ago
parent
commit
166ef58c0f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ffstatus/redisstorage.py

+ 2 - 2
ffstatus/redisstorage.py

@@ -67,9 +67,9 @@ class RedisStorage(BaseStorage):
             if fieldtype == 'json':
                 node[item] = json.loads(payload)
             elif fieldtype == 'int':
-                node[item] = int()
+                node[item] = int(payload)
             elif fieldtype == 'float':
-                node[item] = float()
+                node[item] = float(payload)
             else:
                 node[item] = payload