Index into results array to be able to pull key/value

master
jowj 5 years ago
parent 0cb65d211e
commit 9faa0e1ca0

@ -44,7 +44,7 @@ while is_on:
for line in json_File:
results.append(json.loads(line))
for key,value in results.items():
for key,value in results[-1].items():
if stateChanged == True:
errorFile = open("/shared/alerts.log", "w")
errorText = key + "returned with" + str(value) + "\n"

Loading…
Cancel
Save