From a0e0ece772b3cd16da9c735a9eed75eb1912bdca Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Wed, 17 Oct 2018 20:07:50 +0200 Subject: [PATCH] Fix bug with parameters in db query --- db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.py b/db.py index cd07206..2d88653 100644 --- a/db.py +++ b/db.py @@ -29,6 +29,6 @@ class Db(): def get_dead_bodies(self, chat): """List the dead""" names = [] - for name in self.conn.execute("select * from death where chat = ?", chat).fetchall(): + for name in self.conn.execute("select * from death where chat = ?", [chat]).fetchall(): names.append(name[0]) return ", ".join(names) -- 2.25.1