mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 23:33:33 +08:00
Fix: Wrong condition of 21:00~03:00 time check
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import copy
|
import copy
|
||||||
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
from datetime import datetime
|
|
||||||
from scipy import signal
|
from scipy import signal
|
||||||
|
|
||||||
from module.base.timer import Timer
|
from module.base.timer import Timer
|
||||||
@@ -295,7 +295,7 @@ class RewardCommission(UI, InfoHandler):
|
|||||||
|
|
||||||
# Not in 21:00~03:00, but scanned night commissions
|
# Not in 21:00~03:00, but scanned night commissions
|
||||||
# Probably some outdated commissions, a refresh should solve it
|
# 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')
|
night = urgent.select(category_str='night')
|
||||||
if night:
|
if night:
|
||||||
logger.warning('Not in 21:00~03:00, but scanned night commissions')
|
logger.warning('Not in 21:00~03:00, but scanned night commissions')
|
||||||
|
|||||||
Reference in New Issue
Block a user