mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 10:01:10 +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):
|
||||
result = super().after_process(result)
|
||||
result = result.strip('.,。,')
|
||||
result = result.replace('Oh', '0h').replace('oh', '0h')
|
||||
return result
|
||||
|
||||
def format_result(self, result: str) -> timedelta:
|
||||
|
Loading…
Reference in New Issue
Block a user