1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-06-01 17:03:37 +08:00

Fix: rename to removeprefix

This commit is contained in:
LmeSzinc
2026-05-22 18:42:11 +08:00
parent 4d836d34cf
commit 0491a0e47d
3 changed files with 10 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ from scipy import signal
from module.base.decorator import cached_property
from module.base.utils import *
from module.device.method.utils import remove_suffix
from module.device.method.utils import removesuffix
from module.logger import logger
from module.ocr.ocr import Duration, Ocr
from module.research.assets import *
@@ -364,7 +364,7 @@ def research_jp_detect(image):
"""
project = ResearchProjectJp()
project.series = get_research_series_jp(image)
project.duration = remove_suffix(str(get_research_duration_jp(image) / 3600), '.0')
project.duration = removesuffix(str(get_research_duration_jp(image) / 3600), '.0')
if project.duration == '':
project.duration = '0'
project.genre = get_research_genre_jp(image)