From 291d5d4ffccdd40f7c4a9f0719211ddb24412779 Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Fri, 10 Jan 2014 17:01:11 -0500 Subject: [PATCH] rlgall.py: delete a few lines that got moved elsewhere --- py/rlgall.py | 4 ---- 1 file changed, 4 deletions(-) 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()