Reverse the hearts top5

This commit is contained in:
Eryn Wells 2016-05-18 09:55:39 -04:00
parent 1b14528f45
commit 3f3a0d6f05

View file

@ -69,7 +69,7 @@ def find_operator(text):
def top5():
data = read_data()
items = [(score, name) for name, score in data.items()]
items.sort()
items.sort(key=lambda item: item[0], reverse=True)
out = ''
for idx in range(5):
try: