changeset 11:e5ba2e76d1b0

Only look at keys which exist. Newer pywws has illuminance which isn't reported everywhere.
author Daniel O'Connor <darius@dons.net.au>
date Fri, 03 Feb 2012 23:48:17 +1030
parents 15fed86d9fac
children bfe6ed563ffc
files iwws.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/iwws.py	Fri Feb 03 23:47:25 2012 +1030
+++ b/iwws.py	Fri Feb 03 23:48:17 2012 +1030
@@ -68,7 +68,7 @@
         r[k] = []
 
     for d in data:
-        for k in store.key_list:
+        for k in d.keys():
             if k == 'idx':
                 t = int(dt2epoch(d[k]))
                 r[k].append(t)