mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 07:08:04 +08:00
Fix: Wrong condition of 21:00~03:00 time check
This commit is contained in:
parent
98e59763d8
commit
c9dd83bc6f
@ -1,6 +1,6 @@
|
||||
import copy
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
from datetime import datetime
|
||||
from scipy import signal
|
||||
|
||||
from module.base.timer import Timer
|
||||
@ -295,7 +295,7 @@ class RewardCommission(UI, InfoHandler):
|
||||
|
||||
# Not in 21:00~03:00, but scanned night commissions
|
||||
# Probably some outdated commissions, a refresh should solve it
|
||||
if get_server_last_update('03:00') < datetime.now() < get_server_next_update('21:00'):
|
||||
if datetime.now() - get_server_next_update('21:00') > timedelta(hours=6):
|
||||
night = urgent.select(category_str='night')
|
||||
if night:
|
||||
logger.warning('Not in 21:00~03:00, but scanned night commissions')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user