From c9b6adc9c7cbd96c843b8b45629390826707e9a3 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 31 Aug 2023 21:31:52 +0800 Subject: [PATCH] turn pause into even number for world clock --- stockTicker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stockTicker.py b/stockTicker.py index 4f33308..b8164d7 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -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