jenkinsfile
This commit is contained in:
parent
ce7a355ca7
commit
8b65f2e88c
@ -7,7 +7,7 @@ with open("helper.txt", "r") as f:
|
|||||||
if re.match(r'^id:.*', line):
|
if re.match(r'^id:.*', line):
|
||||||
wer.write(line + " = ")
|
wer.write(line + " = ")
|
||||||
elif re.match(r'^Scores:.*', line):
|
elif re.match(r'^Scores:.*', line):
|
||||||
helper = line.replace("Scores: \(#C #S #D #I\) ", "").split()
|
helper = line.replace(r"Scores: \(#C #S #D #I\) ", "").split()
|
||||||
sum = helper[0] + helper[1] + helper[2] + helper[3]
|
sum = helper[0] + helper[1] + helper[2] + helper[3]
|
||||||
wer.write(str((int(helper[0])/int(sum)) * 100) + "%\n")
|
wer.write(str((int(helper[0])/int(sum)) * 100) + "%\n")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user