bug fix: here commit should be outside the if test
[sfa.git] / 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)