obi stats: fixed error when printing bool keys
This commit is contained in:
@ -251,7 +251,7 @@ def run(config):
|
|||||||
for i in range(len(sorted_stats)):
|
for i in range(len(sorted_stats)):
|
||||||
c = sorted_stats[i][0]
|
c = sorted_stats[i][0]
|
||||||
for v in c:
|
for v in c:
|
||||||
if v is not None:
|
if type(v) == bytes:
|
||||||
print(pcat % tostr(v)+"\t", end="")
|
print(pcat % tostr(v)+"\t", end="")
|
||||||
else:
|
else:
|
||||||
print(pcat % str(v)+"\t", end="")
|
print(pcat % str(v)+"\t", end="")
|
||||||
@ -268,6 +268,6 @@ def run(config):
|
|||||||
print("%7d" %catcount[c], end="")
|
print("%7d" %catcount[c], end="")
|
||||||
print("%9d" %totcount[c])
|
print("%9d" %totcount[c])
|
||||||
|
|
||||||
input[0].close()
|
input[0].close(force=True)
|
||||||
|
|
||||||
logger("info", "Done.")
|
logger("info", "Done.")
|
||||||
|
Reference in New Issue
Block a user