added csv/ path

This commit is contained in:
Justin 2023-08-29 19:30:05 +08:00 committed by GitHub
parent 3261624329
commit 09abfb297d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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