mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: handle duration OCR error "Oh"
This commit is contained in:
parent
96b6bdadf0
commit
fe73e8879c
@ -392,6 +392,7 @@ class Duration(Ocr):
|
|||||||
def after_process(self, result):
|
def after_process(self, result):
|
||||||
result = super().after_process(result)
|
result = super().after_process(result)
|
||||||
result = result.strip('.,。,')
|
result = result.strip('.,。,')
|
||||||
|
result = result.replace('Oh', '0h').replace('oh', '0h')
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def format_result(self, result: str) -> timedelta:
|
def format_result(self, result: str) -> timedelta:
|
||||||
|
Loading…
Reference in New Issue
Block a user