mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Fix 2
This commit is contained in:
@@ -1547,13 +1547,16 @@ async def zagraj_muzyke_mego_ludu(ctx):
|
||||
stats[name] = how_many
|
||||
|
||||
sorted_stats = sorted(stats.items(), key=lambda x: x[1])
|
||||
key_words = []
|
||||
for stat in sorted_stats:
|
||||
key_words.append(stat(0))
|
||||
|
||||
print(sorted_stats)
|
||||
print(key_words)
|
||||
reply = "Wygenerowana plejlista:\n"
|
||||
async with ctx.typing():
|
||||
logger.info("Zaczynam szukać timestamp %s", datetime.now())
|
||||
search_time_glob = datetime.now()
|
||||
file = await wyszukaj(ctx=ctx, how_many=100, slowa_kluczowe=sorted_stats[:30])
|
||||
file = await wyszukaj(ctx=ctx, how_many=100, slowa_kluczowe=key_words[:30])
|
||||
logger.info(
|
||||
"Koniec szukania(timestamp %s zajęło %s",
|
||||
datetime.now(),
|
||||
|
||||
Reference in New Issue
Block a user