obi stats: fixed bug with None values

This commit is contained in:
Celine Mercier
2019-09-22 20:21:53 +02:00
parent d30f7e7317
commit fa9555deb9

View File

@ -251,7 +251,10 @@ def run(config):
for i in range(len(sorted_stats)):
c = sorted_stats[i][0]
for v in c:
print(pcat % tostr(v)+"\t", end="")
if v is not None:
print(pcat % tostr(v)+"\t", end="")
else:
print(pcat % str(v)+"\t", end="")
for m in config['stats']['minimum']:
print((("%%%dd" % lmini[m]) % mini[m][c])+"\t", end="")
for m in config['stats']['maximum']: