render template scheduler settings

This commit is contained in:
Justin 2023-04-24 19:40:01 +08:00 committed by GitHub
parent 5155b7d790
commit e7cb18346b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -241,7 +241,12 @@ def index():
general_settings = json.load(f)
f.close()
try:
f = open('csv/scheduler.json','r')
scheduler_settings = json.load(f)
f.close()
except:
scheduler_settings = ''
try: # incase this doesnt exist
api_keys = api_key2[1]
@ -298,7 +303,8 @@ def index():
'movie_api_key':movie_api_key,
'ipo_api_key':ipo_api_key,
'wifi_SSID':wifi_SSID,
'wifi_PSK':wifi_PSK
'wifi_PSK':wifi_PSK,
'scheduler_settings':scheduler_settings
}