fixed indent spacing issues
This commit is contained in:
parent
528fc81c01
commit
0d464c965f
@ -271,7 +271,7 @@ def index():
|
|||||||
economic_settings = json.load(f)
|
economic_settings = json.load(f)
|
||||||
f.close()
|
f.close()
|
||||||
except:
|
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:
|
try:
|
||||||
f = open('csv/scheduler.json','r')
|
f = open('csv/scheduler.json','r')
|
||||||
@ -1245,7 +1245,7 @@ def save_economic_settings(input_settings):
|
|||||||
current_settings = json.load(f)
|
current_settings = json.load(f)
|
||||||
f.close()
|
f.close()
|
||||||
except:
|
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['speed'] = input_settings['speed'].lower()
|
||||||
current_settings['speed2'] = input_settings['speed2'].lower()
|
current_settings['speed2'] = input_settings['speed2'].lower()
|
||||||
@ -1260,8 +1260,8 @@ def save_economic_settings(input_settings):
|
|||||||
json.dump(current_settings, f)
|
json.dump(current_settings, f)
|
||||||
f.close()
|
f.close()
|
||||||
except:
|
except:
|
||||||
with open('csv/economic_settings.json', 'w') as f:
|
with open('csv/economic_settings.json', 'w') as f:
|
||||||
json.dump(all_economic_settings, f)
|
json.dump(all_economic_settings, f)
|
||||||
|
|
||||||
f = open('csv/last_updates.json', 'r')
|
f = open('csv/last_updates.json', 'r')
|
||||||
last_updates = json.load(f)
|
last_updates = json.load(f)
|
||||||
|
Loading…
Reference in New Issue
Block a user