This commit is contained in:
2024-01-21 12:05:02 +01:00
parent ee80e7be55
commit efbd6cb670
5 changed files with 7 additions and 5 deletions

View File

@@ -22,7 +22,8 @@ class Donator(json.JSONEncoder):
def top_donator(conn: Connection):
cur = conn.cursor()
cur.execute("""select name, sum(amount) from orders
group by name
group by name
order by sum(amount) desc
LIMIT 5
""")
data = cur.fetchall();