From aa95ee5d72decf7686f7671d5f804edbf9f36a7f Mon Sep 17 00:00:00 2001 From: Thinh Vu <39723360+thinh-vu@users.noreply.github.com> Date: Sat, 27 Jul 2024 19:56:09 +0700 Subject: [PATCH 1/2] Update financial.py --- vnstock3/explorer/vci/financial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnstock3/explorer/vci/financial.py b/vnstock3/explorer/vci/financial.py index b53bd45b..54b370c7 100644 --- a/vnstock3/explorer/vci/financial.py +++ b/vnstock3/explorer/vci/financial.py @@ -43,7 +43,7 @@ def _get_ratio_dict(self, show_log:Optional[bool]=False, get_all:Optional[bool]= df.columns = [camel_to_snake(col) for col in df.columns] effective_get_all = get_all if get_all is not None else self.get_all selected_columns = ['field_name', 'name', 'en__name', 'type', 'order', 'unit'] - df['unit'] = df['unit'].map(_UNIT_MAPPING) + df['unit'] = df['unit'].map(_UNIT_MAP) if effective_get_all is False: df = df[selected_columns] df.columns = [col.replace('__', '_') for col in df.columns] From 9e74dec413950c26f0fa140606b9c98146da0ffd Mon Sep 17 00:00:00 2001 From: Thinh Vu <39723360+thinh-vu@users.noreply.github.com> Date: Wed, 31 Jul 2024 13:36:38 +0700 Subject: [PATCH 2/2] Update logger.py --- vnstock3/core/utils/logger.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vnstock3/core/utils/logger.py b/vnstock3/core/utils/logger.py index 2d6f62ad..666798db 100644 --- a/vnstock3/core/utils/logger.py +++ b/vnstock3/core/utils/logger.py @@ -9,8 +9,10 @@ def get_logger(name): handler = logging.StreamHandler() formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) + handler.setLevel(logging.DEBUG) # Set the level for the handler logger.addHandler(handler) logger.setLevel(logging.DEBUG) # You might want to make the level configurable + logger.propagate = False # Prevent log messages from being passed to the handlers of ancestor loggers return logger def advanced_logger(name,