From ff9318ae50218a024c33a14b6b4322f3c97edb04 Mon Sep 17 00:00:00 2001 From: blue Date: Sun, 16 Jan 2022 22:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=87=A0=E5=A4=84=E7=AC=94?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hikyuu/gui/HikyuuTDX.py | 2 +- hikyuu/gui/data/ImportTdxToH5Task.py | 2 +- hikyuu/gui/data/UseTdxImportToH5Thread.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hikyuu/gui/HikyuuTDX.py b/hikyuu/gui/HikyuuTDX.py index 951424fd8..8809e927b 100644 --- a/hikyuu/gui/HikyuuTDX.py +++ b/hikyuu/gui/HikyuuTDX.py @@ -668,7 +668,7 @@ def on_start_import_pushButton_clicked(self): QApplication.processEvents() if self.tdx_radioButton.isChecked(): - self.hdf5_import_thread = UseTdxImportToH5Thread(config) + self.hdf5_import_thread = UseTdxImportToH5Thread(self, config) else: self.hdf5_import_thread = UsePytdxImportToH5Thread(self, config) diff --git a/hikyuu/gui/data/ImportTdxToH5Task.py b/hikyuu/gui/data/ImportTdxToH5Task.py index 241afa3b4..ceed05582 100644 --- a/hikyuu/gui/data/ImportTdxToH5Task.py +++ b/hikyuu/gui/data/ImportTdxToH5Task.py @@ -72,7 +72,7 @@ def __del__(self): pass def __call__(self): - capture_multiprocess_all_logger(self.log_queue, get_default_logger().levle) + capture_multiprocess_all_logger(self.log_queue, get_default_logger().level) use_hdf = False if self.config.getboolean('hdf5', 'enable', fallback=True): sqlite_file = "{}/stock.db".format(self.config['hdf5']['dir']) diff --git a/hikyuu/gui/data/UseTdxImportToH5Thread.py b/hikyuu/gui/data/UseTdxImportToH5Thread.py index cdef5b883..d36013582 100644 --- a/hikyuu/gui/data/UseTdxImportToH5Thread.py +++ b/hikyuu/gui/data/UseTdxImportToH5Thread.py @@ -41,7 +41,7 @@ def __init__(self, parent, config): super(self.__class__, self).__init__() self.logger = logging.getLogger(self.__class__.__name__) self.parent = parent - self.log_queue = parent.mq_log_q if parent is not None else None + self.log_queue = parent.mp_log_q if parent is not None else None self.config = config self.msg_name = 'HDF5_IMPORT'