rlgall.py: delete a few lines that got moved elsewhere

This commit is contained in:
John "Elwin" Edwards 2014-01-10 17:01:11 -05:00
parent 97cadd5e78
commit 291d5d4ffc

View file

@ -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()