|
|
@ -91,7 +91,10 @@ while is_on:
|
|
|
|
|
|
|
|
|
|
|
|
# track state
|
|
|
|
# track state
|
|
|
|
file = open("/shared/results.json", "r")
|
|
|
|
file = open("/shared/results.json", "r")
|
|
|
|
stateFile = open("/shared/state.log", "r")
|
|
|
|
if os.path.exists("/shared/state.log"):
|
|
|
|
|
|
|
|
stateFile = open("/shared/state.log", "r")
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
stateFile = open("/shared/state.log", "w+")
|
|
|
|
|
|
|
|
|
|
|
|
oldData = stateFile.read()
|
|
|
|
oldData = stateFile.read()
|
|
|
|
if oldData != file.read():
|
|
|
|
if oldData != file.read():
|
|
|
|