Browse Source

abaisse le check des résultats sql a la présence les variables dans le dict

Maxime Alves LIRMM@home 4 years ago
parent
commit
d0297e0860
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      pyheatpump/models/variable.py

+ 1
- 1
pyheatpump/models/variable.py View File

97
                 AND var.last_update > :since""",
97
                 AND var.last_update > :since""",
98
             params)
98
             params)
99
 
99
 
100
-            if row['address'] and row['value']
100
+            if 'address' in row.keys() and 'value' in row.keys()
101
         }
101
         }
102
 
102
 
103
 
103
 

Loading…
Cancel
Save