diff --git a/server.py b/server.py index 20a0f3d..fe80e4c 100755 --- a/server.py +++ b/server.py @@ -271,7 +271,7 @@ def index(): economic_settings = json.load(f) f.close() except: - economic_settings = {"feature": "Economic Calendar", "speed": "medium", "speed2": "medium", "animation": "up", "importance": "Med - High", "title": True, "timezone": "US/Eastern", "countries": ["United States"], "events": []} + economic_settings = {"feature": "Economic Calendar", "speed": "medium", "speed2": "medium", "animation": "up", "importance": "Med - High", "title": True, "timezone": "US/Eastern", "countries": ["United States"], "events": []} try: f = open('csv/scheduler.json','r') @@ -1245,7 +1245,7 @@ def save_economic_settings(input_settings): current_settings = json.load(f) f.close() except: - current_settings = {"feature": "Economic Calendar", "speed": "medium", "speed2": "medium", "animation": "up", "importance": "Med - High", "title": True, "timezone": "US/Eastern", "countries": ["United States"], "events": []} + current_settings = {"feature": "Economic Calendar", "speed": "medium", "speed2": "medium", "animation": "up", "importance": "Med - High", "title": True, "timezone": "US/Eastern", "countries": ["United States"], "events": []} current_settings['speed'] = input_settings['speed'].lower() current_settings['speed2'] = input_settings['speed2'].lower() @@ -1260,8 +1260,8 @@ def save_economic_settings(input_settings): json.dump(current_settings, f) f.close() except: - with open('csv/economic_settings.json', 'w') as f: - json.dump(all_economic_settings, f) + with open('csv/economic_settings.json', 'w') as f: + json.dump(all_economic_settings, f) f = open('csv/last_updates.json', 'r') last_updates = json.load(f)