From d5df4b9a9f60f1999025bc0109c0963fd6d2d4b0 Mon Sep 17 00:00:00 2001 From: HardiReady Date: Fri, 10 Nov 2017 15:15:24 +0100 Subject: [PATCH] Fix player name parsing from Fraktionsuebersicht --- api/tools/log-parse-tool.js | 2 +- .../app/statistic/war-detail/war-detail.component.html | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/tools/log-parse-tool.js b/api/tools/log-parse-tool.js index 9254541..ce4d51d 100644 --- a/api/tools/log-parse-tool.js +++ b/api/tools/log-parse-tool.js @@ -165,7 +165,7 @@ const parseWarLog = (lineArray, war) => { * PLAYERS */ else if (line.includes('Fraktionsübersicht ||')) { - const playerString = line.substring(line.lastIndexOf('Fraktionsübersicht || ') + 22, line.lastIndexOf(' :OPT LOG END')); + const playerString = line.substring(line.lastIndexOf('Fraktionsübersicht || ') + 22, line.lastIndexOf(', PUID')); addPlayerIfNotExists(playerString) } }); diff --git a/static/src/app/statistic/war-detail/war-detail.component.html b/static/src/app/statistic/war-detail/war-detail.component.html index 1db0fb0..306a641 100644 --- a/static/src/app/statistic/war-detail/war-detail.component.html +++ b/static/src/app/statistic/war-detail/war-detail.component.html @@ -165,11 +165,11 @@ - - - Player - - + + + + + -- 2.25.1