Commit dcf8cf1d by Celine Mercier

Improved obi stats

parent 3cfe3a9b
...@@ -244,7 +244,7 @@ def run(config): ...@@ -244,7 +244,7 @@ def run(config):
"\t count" + \ "\t count" + \
"\t total" "\t total"
print(hcat) print(hcat)
sorted_stats = sorted(catcount.items(), key = lambda kv:(kv[1], kv[0]), reverse=True) sorted_stats = sorted(catcount.items(), key = lambda kv:(totcount[kv[0]]), reverse=True)
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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment