diff iwws.py @ 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 2d9ee2b3ae82
children a0213f0e707b
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)