mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 05:08:19 +08:00
Fix: Convert CheckUpdateInterval type (fixed #1203)
Fix: Update datetime regex
This commit is contained in:
@@ -1066,7 +1066,7 @@ def startup():
|
||||
if State.deploy_config.DiscordRichPresence:
|
||||
init_discord_rpc()
|
||||
if State.deploy_config.StartOcrServer:
|
||||
start_ocr_server_process(updater.config["OcrServerPort"])
|
||||
start_ocr_server_process(State.deploy_config.OcrServerPort)
|
||||
|
||||
|
||||
def clearup():
|
||||
|
||||
@@ -53,7 +53,7 @@ class Updater(DeployConfig, GitManager, PipManager):
|
||||
@property
|
||||
def delay(self):
|
||||
self.read()
|
||||
return self.CheckUpdateInterval * 60
|
||||
return int(self.CheckUpdateInterval) * 60
|
||||
|
||||
@property
|
||||
def schedule_time(self):
|
||||
|
||||
@@ -21,9 +21,8 @@ from module.logger import logger
|
||||
from module.webui.setting import State
|
||||
|
||||
RE_DATETIME = (
|
||||
r"(\d{2}|\d{4})(?:\-)?([0]{1}\d{1}|[1]{1}[0-2]{1})(?:\-)?"
|
||||
+ r"([0-2]{1}\d{1}|[3]{1}[0-1]{1})(?:\s)?([0-1]{1}\d{1}|[2]"
|
||||
+ r"{1}[0-3]{1})(?::)?([0-5]{1}\d{1})(?::)?([0-5]{1}\d{1})"
|
||||
r"\d{4}\-(0\d|1[0-2])\-([0-2]\d|[3][0-1]) "
|
||||
r"([0-1]\d|[2][0-3]):([0-5]\d):([0-5]\d)"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user