Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
fix: move config_reader out of config scope
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinNitroG committed Jan 9, 2025
1 parent 99059d1 commit d407184
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/check_phat_nguoi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from truststore import inject_into_ssl

from check_phat_nguoi.config.config_reader import config
from check_phat_nguoi.config_reader import config
from check_phat_nguoi.get_data import GetData
from check_phat_nguoi.notify import SendNotifications

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

from check_phat_nguoi.constants.config import CONFIG_PATHS

from .dto import ConfigDTO
from .exceptions import NoConfigFoundException
from .config.dto import ConfigDTO
from .config.exceptions import NoConfigFoundException


def _config_reader() -> ConfigDTO:
Expand Down
2 changes: 1 addition & 1 deletion src/check_phat_nguoi/get_data/engines/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from aiohttp.typedefs import LooseHeaders

from check_phat_nguoi.config import PlateInfoDTO
from check_phat_nguoi.config.config_reader import config
from check_phat_nguoi.config_reader import config
from check_phat_nguoi.context import PlateInfoModel

logger = getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion src/check_phat_nguoi/get_data/get_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from logging import getLogger

from check_phat_nguoi.config import ApiEnum, PlateInfoDTO
from check_phat_nguoi.config.config_reader import config
from check_phat_nguoi.config_reader import config
from check_phat_nguoi.context import (
PlateInfoModel,
plates_context,
Expand Down
2 changes: 1 addition & 1 deletion src/check_phat_nguoi/notify/engines/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from aiohttp import ClientSession, ClientTimeout
from aiohttp.typedefs import LooseHeaders

from check_phat_nguoi.config.config_reader import config
from check_phat_nguoi.config_reader import config

logger = getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from check_phat_nguoi.config.config_reader import config
from check_phat_nguoi.config_reader import config
from check_phat_nguoi.constants import (
MESSAGE_MARKDOWN_PATTERN,
RESOLUTION_LOCATION_MARKDOWN_PATTERN,
Expand Down
2 changes: 1 addition & 1 deletion src/check_phat_nguoi/notify/send_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from logging import getLogger

from check_phat_nguoi.config import BaseNotificationDTO, TelegramNotificationDTO
from check_phat_nguoi.config.config_reader import config
from check_phat_nguoi.config_reader import config
from check_phat_nguoi.context import plates_context

from .engines.telegram import TelegramNotificationEngine
Expand Down
2 changes: 1 addition & 1 deletion src/check_phat_nguoi/utils/setup_logger.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from logging import basicConfig

from check_phat_nguoi.config.config_reader import config
from check_phat_nguoi.config_reader import config
from check_phat_nguoi.constants.config import (
DETAIL_LOG_MESSAGE,
SIMPLE_LOG_MESSAGE,
Expand Down

0 comments on commit d407184

Please sign in to comment.