bug fix: here commit should be outside the if test
authorAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Thu, 29 Apr 2010 12:29:28 +0000 (12:29 +0000)
committerAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Thu, 29 Apr 2010 12:29:28 +0000 (12:29 +0000)
sfa/util/table.py

index 93ca32e..f6090a0 100644 (file)
@@ -98,7 +98,7 @@ class SfaTable(list):
             sql = " DELETE FROM %s WHERE authority = %s" % \
                     (self.tablename, record['hrn'])
             self.db.do(sql)
-            self.db.commit() 
+        self.db.commit() 
 
     def insert(self, record):
         db_fields = self.db_fields(record)