This commit is contained in:
2024-04-05 23:27:38 +02:00
parent 6f4cea61e1
commit c87ffee71d
+1 -1
View File
@@ -1188,7 +1188,7 @@ async def wyszukaj(ctx, how_many=0, slowa_kluczowe=None):
else:
word_list = ctx.message.content.split()
logger.info("Wyszukuje")
jrequest = {"lista_slow" : word_list, "dlugosc_plejlisty" : how_many, "UUID": uuid.uuid4()}
jrequest = {"lista_slow" : word_list, "dlugosc_plejlisty" : how_many, "UUID": str(uuid.uuid4())}
coroutine = asyncio.to_thread(requests.post, f"{FILE_SERVICE_ADDRESS}{GET_PLAYLIST}", json=jrequest, timeout=360)
return_data = await coroutine
if not return_data.status_code == 200: