Corona: fix --top10 reply order

This commit is contained in:
oddluck 2020-03-27 23:06:15 +00:00
parent f530068836
commit aa05fac3e4

View File

@ -584,12 +584,11 @@ class Corona(callbacks.Plugin):
self.time_created(updated)))
else:
reply = ''
n = 0
n = 1
for country in self.data:
if country == 'Total:':
continue
if n > 9:
if n > 10:
break
if self.data[country]['rank'] == "#{0}".format(n):
reply += " {0}: \x1F{1}\x1F (\x0307{2}\x03/\x0304{3}\x03),".format(
self.data[country]['rank'],
self.data[country]['name'],