mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-17 07:12:09 +00:00
Fix 2
This commit is contained in:
@@ -1547,13 +1547,16 @@ async def zagraj_muzyke_mego_ludu(ctx):
|
|||||||
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])
|
||||||
|
key_words = []
|
||||||
|
for stat in sorted_stats:
|
||||||
|
key_words.append(stat(0))
|
||||||
|
|
||||||
print(sorted_stats)
|
print(key_words)
|
||||||
reply = "Wygenerowana plejlista:\n"
|
reply = "Wygenerowana plejlista:\n"
|
||||||
async with ctx.typing():
|
async with ctx.typing():
|
||||||
logger.info("Zaczynam szukać timestamp %s", datetime.now())
|
logger.info("Zaczynam szukać timestamp %s", datetime.now())
|
||||||
search_time_glob = 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(
|
logger.info(
|
||||||
"Koniec szukania(timestamp %s zajęło %s",
|
"Koniec szukania(timestamp %s zajęło %s",
|
||||||
datetime.now(),
|
datetime.now(),
|
||||||
|
|||||||
Reference in New Issue
Block a user