QUick fix

This commit is contained in:
2024-04-08 18:49:44 +02:00
parent eda30615a1
commit e11ed40a57
+4 -5
View File
@@ -2128,13 +2128,12 @@ async def wyszukaj_linki_do_dokumentow(ctx):
query_response.json()["data"][2],
)
if ctx.message.author.nick:
username = ctx.message.author.nick
else:
username = ctx.message.author.name
username = ctx.message.author.nick
else:
username = ctx.message.author.name
query_object = QueryControl(username, query_uuid, query, logger)
COMM_Q.put()
COMM_Q.put(query_object)
# TODO: tutaj jest informacja UUID o requescie zapisywana w queue i konczymy
# TODO: response'y idą do serwera, serwer sobie je mieli i potem wysyła do nas posta albo response
await ctx.send(f"No dobra poszło. Zapamiętaj proszę {query_uuid} - to identyfikator twojego zapytania. Jesteś {queue_size} w kolejce."+