|
|
@ -26,9 +26,9 @@ while is_on:
|
|
|
|
file = open("/shared/results.json", "r")
|
|
|
|
file = open("/shared/results.json", "r")
|
|
|
|
oldData = file.read()
|
|
|
|
oldData = file.read()
|
|
|
|
if oldData == json_string:
|
|
|
|
if oldData == json_string:
|
|
|
|
changed = False
|
|
|
|
state = False
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
changed = True
|
|
|
|
state = True
|
|
|
|
|
|
|
|
|
|
|
|
# old file removal must happen after state tracking:
|
|
|
|
# old file removal must happen after state tracking:
|
|
|
|
os.remove("/shared/results.json")
|
|
|
|
os.remove("/shared/results.json")
|
|
|
|