mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-30 07:21:16 -05:00
Corona: fix --top10 reply order
This commit is contained in:
parent
f530068836
commit
aa05fac3e4
@ -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'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user