This commit is contained in:
2023-07-17 18:32:21 +02:00
committed by migatu
parent e3bec6bc11
commit 90896fa9be
+2 -2
View File
@@ -1541,13 +1541,13 @@ async def zagraj_muzyke_mego_ludu(ctx):
""" """
stats = {} stats = {}
if ctx: if ctx:
stat_iter = get_stats(ctx, 100) stat_iter = get_stats(ctx, 1500)
async for name, how_many in stat_iter: async for name, how_many in stat_iter:
if len(name) > 3: if len(name) > 3:
stats[name] = how_many stats[name] = how_many
sorted_stats = sorted(stats.items(), key=lambda x: x[1]) sorted_stats = sorted(stats.items(), key=lambda x: x[1])
sorted_stats = list(reversed(sorted_stats))
print(sorted_stats) print(sorted_stats)
reply = "Wygenerowana plejlista:\n" reply = "Wygenerowana plejlista:\n"
async with ctx.typing(): async with ctx.typing():