added speed2 to clocks

This commit is contained in:
Justin
2023-08-29 19:19:07 +08:00
committed by GitHub
parent 988022da33
commit a0307b7261

View File

@@ -409,7 +409,7 @@ def index():
clock1_settings = json.load(f)
f.close()
except:
clock1_settings = {"speed": "fast", "transition": "up", "pause": "20"}
clock1_settings = {"speed": "fast", "speed2": "fast", "transition": "up", "pause": "20"}
with open('csv/clock1_settings.json', 'w') as f:
json.dump(clock1_settings, f)
try:
@@ -417,7 +417,7 @@ def index():
clock2_settings = json.load(f)
f.close()
except:
clock2_settings = {"speed": "fast", "transition": "up", "pause": "20"}
clock2_settings = {"speed": "fast", "speed2": "fast", "transition": "up", "pause": "20"}
with open('csv/clock2_settings.json', 'w') as f:
json.dump(clock2_settings, f)
try:
@@ -425,7 +425,7 @@ def index():
worldclock_settings = json.load(f)
f.close()
except:
worldclock_settings = {"speed": "fast", "transition": "up", "pause": "20"}
worldclock_settings = {"speed": "fast", "speed2": "fast", "transition": "up", "pause": "20"}
with open('csv/worldclock_settings.json', 'w') as f:
json.dump(worldclock_settings, f)
try: