Mercurial > hg > rlgallery-misc
diff py/rlgall.py @ 41:d3ccdc195796
rlgall.py: delete a few lines that got moved elsewhere
author | John "Elwin" Edwards |
---|---|
date | Fri, 10 Jan 2014 17:01:11 -0500 |
parents | 09ef92dc4439 |
children | e1de8aeb5ed4 |
line wrap: on
line diff
--- a/py/rlgall.py Fri Jan 10 12:00:37 2014 -0500 +++ b/py/rlgall.py Fri Jan 10 17:01:11 2014 -0500 @@ -370,10 +370,6 @@ 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()