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