turn pause into even number for world clock

This commit is contained in:
Justin
2023-08-31 21:31:52 +08:00
committed by GitHub
parent 94220a0409
commit c9b6adc9c7

View File

@@ -7855,6 +7855,8 @@ class StockTicker():
istan_timezone = pytz.timezone('Europe/Istanbul')
pause = int(worldclock_set['pause'])
if pause % 2 != 0:
pause += 1
transition = worldclock_set['transition'].lower()
if worldclock_set['speed'].lower() == 'slow':
speed = 0.05