mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-16 06:42:10 +00:00
As
This commit is contained in:
@@ -1188,7 +1188,7 @@ async def wyszukaj(ctx, how_many=0, slowa_kluczowe=None):
|
|||||||
else:
|
else:
|
||||||
word_list = ctx.message.content.split()
|
word_list = ctx.message.content.split()
|
||||||
logger.info("Wyszukuje")
|
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)
|
coroutine = asyncio.to_thread(requests.post, f"{FILE_SERVICE_ADDRESS}{GET_PLAYLIST}", json=jrequest, timeout=360)
|
||||||
return_data = await coroutine
|
return_data = await coroutine
|
||||||
if not return_data.status_code == 200:
|
if not return_data.status_code == 200:
|
||||||
|
|||||||
Reference in New Issue
Block a user