Reverse the hearts top5
This commit is contained in:
parent
1b14528f45
commit
3f3a0d6f05
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ def find_operator(text):
|
||||||
def top5():
|
def top5():
|
||||||
data = read_data()
|
data = read_data()
|
||||||
items = [(score, name) for name, score in data.items()]
|
items = [(score, name) for name, score in data.items()]
|
||||||
items.sort()
|
items.sort(key=lambda item: item[0], reverse=True)
|
||||||
out = ''
|
out = ''
|
||||||
for idx in range(5):
|
for idx in range(5):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue