Displaying differences for changeset |
@@ -249,15 +249,16 @@ |
def update_app_state(self, state): |
"""Overwrite any state elements that should be updated here.""" |
- if 'indicatorList' not in state['appState']: |
- indicator_list = read_indicator_list(get_cwd()) |
- mcda_list = get_mcda_indicator_list(indicator_list) |
- state['appState'].update({ |
- 'indicatorList': indicator_list, |
- 'mcda': { |
- 'indicators': mcda_list |
- }, |
- }) |
+ indicator_list = read_indicator_list(get_cwd()) |
+ mcda_list = get_mcda_indicator_list(indicator_list) |
+ state['appState'].update({ |
+ 'indicatorList': indicator_list |
+ }) |
+ if 'mcda' not in state['appState']: |
+ state['appState']['mcda'] = {} |
+ state['appState']['mcda'].update({ |
+ 'indicators': mcda_list |
+ }) |
return state |
def logout(self): |