mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 01:38:21 +08:00
Fix: Empty project duration in research_jp_detect (fixed #4528)
This commit is contained in:
@@ -4,6 +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.logger import logger
|
||||
from module.ocr.ocr import Duration, Ocr
|
||||
from module.research.assets import *
|
||||
@@ -363,7 +364,9 @@ def research_jp_detect(image):
|
||||
"""
|
||||
project = ResearchProjectJp()
|
||||
project.series = get_research_series_jp(image)
|
||||
project.duration = str(get_research_duration_jp(image) / 3600).rstrip('.0')
|
||||
project.duration = remove_suffix(str(get_research_duration_jp(image) / 3600), '.0')
|
||||
if project.duration == '':
|
||||
project.duration = '0'
|
||||
project.genre = get_research_genre_jp(image)
|
||||
costs = get_research_cost_jp(image)
|
||||
for cost in costs:
|
||||
|
||||
Reference in New Issue
Block a user