diff --git a/py/rlgall.py b/py/rlgall.py index e54d6f2..6ac3c66 100644 --- a/py/rlgall.py +++ b/py/rlgall.py @@ -370,10 +370,6 @@ class RogueGame(Game): def putIntoDB(self, dictlist, conn): "Add the entries in dictlist to the database through connection conn, \ which needs the INSERT privilege." - fields = self.sqltypes.keys() - fstr = ", ".join(fields) - vstr = ", ".join([ "%({})s".format(c) for c in fields ]) - qstr = "INSERT INTO {0} ({1}) VALUES ({2});".format(self.uname, fstr, vstr); cur = conn.cursor() cur.executemany(self.insertq, [ d for d in dictlist if d["game"] == self ]) conn.commit()