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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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