Remove ship number prefix from ship names, merge same ships
This commit is contained in:
@@ -111,7 +111,8 @@ class HandoverLogParser:
|
|||||||
if not ship_match:
|
if not ship_match:
|
||||||
continue
|
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)
|
vehicles_match = re.search(r'上场车辆数:(\d+)', cleaned)
|
||||||
teu_eff_match = re.search(
|
teu_eff_match = re.search(
|
||||||
|
|||||||
Reference in New Issue
Block a user