From 11fbd17066659c8ede1be258646d52d41b5eef8e Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 3 Apr 2020 14:49:48 +0200 Subject: [PATCH] jenkinsfile --- createWERandSRRFiles.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/createWERandSRRFiles.py b/createWERandSRRFiles.py index f182827..cd7ecb1 100644 --- a/createWERandSRRFiles.py +++ b/createWERandSRRFiles.py @@ -9,10 +9,10 @@ counter = 0 with open("helper.txt", "r") as f: for line in f: - if re.match(r'^id.*', line): + if re.match(r'^id:.*', line): lastId = line.replace("\n", "") - elif re.match(r'^Scores.*', line): - helper = line.replace("Scores (#C #S #D #I) ", "").split() + elif re.match(r'^Scores:.*', line): + helper = line.replace("Scores: (#C #S #D #I) ", "").split() sum = int(helper[0]) + int(helper[1]) + int(helper[2]) + int(helper[3]) sum = (int(helper[0])/int(sum)) * 100 globalPercent += sum