From aa399adebd513bb0927c6e8ac56f448c55f72728 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Wed, 8 Feb 2017 15:07:22 +0100 Subject: [PATCH] Fix INSERT statement --- dbtools/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbtools/__init__.py b/dbtools/__init__.py index 4e6f3ad..182be5b 100644 --- a/dbtools/__init__.py +++ b/dbtools/__init__.py @@ -68,7 +68,7 @@ class dbObject: self.commit() def storeUser(self, cid, ato, ase): - self.executeQuery("INSERT INTO tokens VALUES(%i, '%s', '%s');" % (int(cid), ato, ase)) + self.executeQuery("INSERT INTO tokens(cid, ato, ase) VALUES(%i, '%s', '%s');" % (int(cid), ato, ase)) self.commit() def ato(self, cid):