diff --git a/pyfpdb/GuiAutoImport.py b/pyfpdb/GuiAutoImport.py index aefe17d1..e86bab67 100755 --- a/pyfpdb/GuiAutoImport.py +++ b/pyfpdb/GuiAutoImport.py @@ -31,10 +31,11 @@ import Configuration import string class GuiAutoImport (threading.Thread): - def __init__(self, settings, config): + def __init__(self, settings, config, sql): """Constructor for GuiAutoImport""" self.settings=settings self.config=config + self.sql = sql imp = self.config.get_import_parameters() @@ -44,7 +45,7 @@ class GuiAutoImport (threading.Thread): self.input_settings = {} self.pipe_to_hud = None - self.importer = fpdb_import.Importer(self,self.settings, self.config) + self.importer = fpdb_import.Importer(self, self.settings, self.config, self.sql) self.importer.setCallHud(True) self.importer.setMinPrint(settings['minPrint']) self.importer.setQuiet(False) diff --git a/pyfpdb/fpdb.py b/pyfpdb/fpdb.py index 7f648b52..37907397 100755 --- a/pyfpdb/fpdb.py +++ b/pyfpdb/fpdb.py @@ -491,7 +491,7 @@ class fpdb: def tab_auto_import(self, widget, data=None): """opens the auto import tab""" - new_aimp_thread=GuiAutoImport.GuiAutoImport(self.settings, self.config) + new_aimp_thread=GuiAutoImport.GuiAutoImport(self.settings, self.config, self.sql) self.threads.append(new_aimp_thread) aimp_tab=new_aimp_thread.get_vbox() self.add_and_display_tab(aimp_tab, "Auto Import")