This commit is contained in:
2023-07-20 16:16:41 +02:00
committed by migatu
parent c52d55e0a2
commit 3ca9f2c6f3
+2 -2
View File
@@ -828,7 +828,7 @@ async def wyszukaj(ctx, how_many=0, slowa_kluczowe=None):
logger.info("Słowo kluczowe: %s", word) logger.info("Słowo kluczowe: %s", word)
itr = 0 itr = 0
async for file in async_iterator_generator(music_file_list): async for file in async_iterator_generator(music_file_list):
file = await file.split(SEPARATOR_FILE_PATH) file = file.split(SEPARATOR_FILE_PATH)
char_remove = [ char_remove = [
".", ".",
@@ -855,7 +855,7 @@ async def wyszukaj(ctx, how_many=0, slowa_kluczowe=None):
all_words = [] all_words = []
async for f_iter in async_iterator_generator(file): async for f_iter in async_iterator_generator(file):
async for char in async_iterator_generator(char_remove): async for char in async_iterator_generator(char_remove):
f_iter = await f_iter.replace(char, "") f_iter = f_iter.replace(char, "")
tmp = f_iter.split() tmp = f_iter.split()
all_words.extend(tmp) all_words.extend(tmp)
pingu = 1 pingu = 1