Browse Source

Fix bug with parameters in db query

quotes
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): def get_dead_bodies(self, chat):
"""List the dead""" """List the dead"""
names = [] 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]) names.append(name[0])
return ", ".join(names) return ", ".join(names)
Loading…
Cancel
Save