From: Armaan Bhojwani Date: Tue, 26 Jan 2021 05:03:44 +0000 (-0500) Subject: Fix "tell me more" returning a tuple X-Git-Url: https://git.armaanb.net/?p=tall.bot.git;a=commitdiff_plain;h=05c656c6e3e521d3866932d73963c0dc914068aa Fix "tell me more" returning a tuple --- diff --git a/tallbot.py b/tallbot.py index f17e04e..4e25e32 100755 --- a/tallbot.py +++ b/tallbot.py @@ -48,7 +48,9 @@ def tell_more(inp, pid): old = int(time.time()) - 150 c.execute("SELECT query FROM queries WHERE pid = (?) AND time > (?)", (str(pid), old)) - return c.fetchone() + + (query, *_) = c.fetchone() + return str(query) if find_query(inp): return query_lookup(pid)