rlgall.py: delete a few lines that got moved elsewhere
This commit is contained in:
parent
97cadd5e78
commit
291d5d4ffc
1 changed files with 0 additions and 4 deletions
|
|
@ -370,10 +370,6 @@ class RogueGame(Game):
|
||||||
def putIntoDB(self, dictlist, conn):
|
def putIntoDB(self, dictlist, conn):
|
||||||
"Add the entries in dictlist to the database through connection conn, \
|
"Add the entries in dictlist to the database through connection conn, \
|
||||||
which needs the INSERT privilege."
|
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 = conn.cursor()
|
||||||
cur.executemany(self.insertq, [ d for d in dictlist if d["game"] == self ])
|
cur.executemany(self.insertq, [ d for d in dictlist if d["game"] == self ])
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue