Browse Source

Fix bug with parameters in db query

pull/6/head
Schneider 6 years ago
parent
commit
a0e0ece772
  1. 2
      db.py

2
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)
Loading…
Cancel
Save