Loading spinner

This commit is contained in:
Jokob-sk
2023-09-16 09:57:38 +10:00
parent 6cb4439d59
commit 40c6c65ee5
10 changed files with 82 additions and 57 deletions

View File

@@ -40,7 +40,7 @@ class app_state_class:
def __init__(self, currentState):
# json file containing the state to communicate with teh frontend
stateFile = apiPath + '/pialert_app_state.json'
stateFile = apiPath + '/app_state.json'
# update self
self.currentState = currentState
@@ -69,7 +69,7 @@ class AppStateEncoder(json.JSONEncoder):
return super().default(obj)
#-------------------------------------------------------------------------------
def updateState( newState):
def updateState(newState):
state = app_state_class(newState)