mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 17:57:01 +08:00
[fpy] Fix: PEP540 & SpecialDrop & interval regex (#4645)
This commit is contained in:
@@ -63,9 +63,7 @@ class FGOpy(HeadlessCliApplication):
|
||||
return
|
||||
prompt, datetime, level, module, content = match.groups()
|
||||
getattr(logger, level.lower())(content)
|
||||
item = self.counter.get(content)
|
||||
if item:
|
||||
setattr(self.config, item, getattr(self.config, item) - 1)
|
||||
self.counter.get(content, lambda: None)()
|
||||
|
||||
if self.first_log:
|
||||
self.first_log = False
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
"Interval": {
|
||||
"type": "input",
|
||||
"value": "00:05",
|
||||
"validate": "\\d+:\\d"
|
||||
"validate": "\\d+:\\d+"
|
||||
}
|
||||
},
|
||||
"Storage": {
|
||||
@@ -176,7 +176,7 @@
|
||||
"Interval": {
|
||||
"type": "input",
|
||||
"value": "07:00",
|
||||
"validate": "\\d+:\\d"
|
||||
"validate": "\\d+:\\d+"
|
||||
}
|
||||
},
|
||||
"Storage": {
|
||||
|
||||
@@ -44,7 +44,7 @@ FpyEmulator:
|
||||
FpyInterval:
|
||||
Interval:
|
||||
value: 07:00
|
||||
validate: "\\d+:\\d"
|
||||
validate: "\\d+:\\d+"
|
||||
|
||||
FpyTeam:
|
||||
Index:
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"Task": {
|
||||
"Fpy": {
|
||||
"name": "FGO-py",
|
||||
"help": "Requries FGO-py v11.2.0 or higher"
|
||||
"help": "Requries FGO-py v20.1.2 or higher"
|
||||
},
|
||||
"FpyHeartbeat": {
|
||||
"name": "Heartbeat",
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"Task": {
|
||||
"Fpy": {
|
||||
"name": "FGO-py設定",
|
||||
"help": "FGO-py v11.2.0以降が必要です"
|
||||
"help": "FGO-py v20.1.2以降が必要です"
|
||||
},
|
||||
"FpyHeartbeat": {
|
||||
"name": "心拍",
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"Task": {
|
||||
"Fpy": {
|
||||
"name": "FGO-py设置",
|
||||
"help": "需要FGO-py v11.2.0或更高"
|
||||
"help": "需要FGO-py v20.1.2或更高"
|
||||
},
|
||||
"FpyHeartbeat": {
|
||||
"name": "心跳",
|
||||
|
||||
@@ -9,7 +9,7 @@ class HeadlessCliApplication:
|
||||
"""Wrap a cli application to provide programmable interactive access"""
|
||||
|
||||
def __init__(self, launch):
|
||||
self.pipe = Popen([launch], stdin=PIPE, stdout=PIPE, stderr=STDOUT, text=True)
|
||||
self.pipe = Popen([launch], stdin=PIPE, stdout=PIPE, stderr=STDOUT, encoding="utf-8", text=True)
|
||||
|
||||
def f():
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user