Remove ship number prefix from ship names, merge same ships

This commit is contained in:
2025-12-29 01:43:15 +08:00
parent e11e378081
commit aeda10c4ed

View File

@@ -111,7 +111,8 @@ class HandoverLogParser:
if not ship_match:
continue
ship_name = f"{ship_match.group(1)}#{ship_match.group(2)}"
# 船名只取纯船名去掉xx#前缀)
ship_name = ship_match.group(2)
vehicles_match = re.search(r'上场车辆数:(\d+)', cleaned)
teu_eff_match = re.search(