added csv/ path

This commit is contained in:
Justin
2023-08-29 19:30:05 +08:00
committed by GitHub
parent 3261624329
commit 09abfb297d

View File

@@ -405,7 +405,7 @@ def index():
with open('clock_screensaver.json', 'w') as f:
json.dump(clock_screensaver, f)
try:
f = open('clock1_settings.json', 'r')
f = open('csv/clock1_settings.json', 'r')
clock1_settings = json.load(f)
f.close()
except:
@@ -413,7 +413,7 @@ def index():
with open('csv/clock1_settings.json', 'w') as f:
json.dump(clock1_settings, f)
try:
f = open('clock2_settings.json', 'r')
f = open('csv/clock2_settings.json', 'r')
clock2_settings = json.load(f)
f.close()
except:
@@ -421,7 +421,7 @@ def index():
with open('csv/clock2_settings.json', 'w') as f:
json.dump(clock2_settings, f)
try:
f = open('worldclock_settings.json', 'r')
f = open('csv/worldclock_settings.json', 'r')
worldclock_settings = json.load(f)
f.close()
except: