after hours over weekend
This commit is contained in:
parent
74b31b3257
commit
e31b63ae0f
@ -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']))
|
||||
|
Loading…
Reference in New Issue
Block a user