From e31b63ae0f60e21f42c2490735288be9fae16a26 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 30 Mar 2023 21:35:55 +0800 Subject: [PATCH] after hours over weekend --- stockTicker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stockTicker.py b/stockTicker.py index 1124966..68031c3 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -1946,7 +1946,7 @@ class StockTicker(): except: pass - elif ((timenow < "04:00:00" or timenow > "16:00:00") and (weekday <= 4)): #postmarket + elif ((timenow < "04:00:00" or timenow > "16:00:00") and (weekday <= 4)) or (weekday > 4): #postmarket try: postprice = '%.2f' % abs(float(prepost_settings[symbol]['Post-market']['postprice'])) postchange = '%.2f' % abs(float(prepost_settings[symbol]['Post-market']['postchange'])) @@ -2202,7 +2202,7 @@ class StockTicker(): except: pass - elif ((timenow < "04:00:00" or timenow > "16:00:00") and (weekday <= 4)): #postmarket + elif ((timenow < "04:00:00" or timenow > "16:00:00") and (weekday <= 4)) or (weekday > 4): #postmarket try: postprice = '%.2f' % abs(float(prepost_settings[symbol]['Post-market']['postprice'])) postchange = '%.2f' % abs(float(prepost_settings[symbol]['Post-market']['postchange']))