From e11ed40a57049b9da048826c22300125271daba2 Mon Sep 17 00:00:00 2001 From: Migatu Date: Mon, 8 Apr 2024 18:49:44 +0200 Subject: [PATCH] QUick fix --- bot.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bot.py b/bot.py index c817213..296689e 100644 --- a/bot.py +++ b/bot.py @@ -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."+