From e47e76bfb05aecdc82c4cbdb3fcda258ab7d5d45 Mon Sep 17 00:00:00 2001 From: Chaz Littlejohn Date: Fri, 8 Apr 2011 22:43:27 +0000 Subject: [PATCH] Bug fix - looks like Files inserts were not getting committed --- pyfpdb/fpdb_import.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyfpdb/fpdb_import.py b/pyfpdb/fpdb_import.py index 6886eee4..065b9dd5 100644 --- a/pyfpdb/fpdb_import.py +++ b/pyfpdb/fpdb_import.py @@ -176,6 +176,7 @@ class Importer: now = datetime.datetime.utcnow() file = os.path.splitext(os.path.basename(file))[0] id = self.database.storeFile([file, site, now, now, 0, 0, 0, 0, 0, 0, False]) + self.database.commit() return [site] + [filter] + [id] #Add an individual file to filelist