[ChatChart] Even more test logging

This commit is contained in:
aikaterna
2021-09-27 11:47:14 -07:00
committed by GitHub
parent cc1d8227d4
commit 1feabd9103

View File

@@ -78,6 +78,11 @@ class Chatchart(commands.Cog):
key=lambda x: x[1],
)
others = 100 - sum(x[1] for x in top_twenty)
if others < 0:
log.info(f"Others is less than zero: {others}")
log.info(f"Toptwenty is: {top_twenty}")
return top_twenty, others
@staticmethod
@@ -89,9 +94,6 @@ class Chatchart(commands.Cog):
if s < 0:
index = sizes.index(s)
log.info(f"Size {s} is not valid, at position {top[index]}")
if others < 0:
log.info(f"Others is less than zero: {others}")
labels = ["{} {:g}%".format(x[0], x[1]) for x in top]
if len(top) >= 20: