changed timing for updatemarket

This commit is contained in:
Justin 2023-08-15 19:31:21 +08:00 committed by GitHub
parent f5aa198689
commit 92eac644cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1849,7 +1849,7 @@ if __name__ == '__main__':
NY_time = datetime.now(NY_zone).replace(tzinfo=None)
opening = NY_time.replace(hour=9, minute=30, second=0, microsecond=0).replace(tzinfo=None)
closing = NY_time.replace(hour=16, minute=5, second=0, microsecond=0).replace(tzinfo=None)
closing = NY_time.replace(hour=16, minute=20, second=0, microsecond=0).replace(tzinfo=None)
stock_open = opening < NY_time < closing and datetime.today().weekday() <= 4
if last_updates['market']['force'] or last_updates['sector']['force'] or (diff >= update_frequencies['market'] and stock_open):# or msg == 'c':