after hours over weekend

This commit is contained in:
Justin
2023-03-30 21:35:55 +08:00
committed by GitHub
parent 74b31b3257
commit e31b63ae0f

View File

@@ -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']))