Check
This commit is contained in:
@@ -22,15 +22,4 @@ def setup_logger():
|
||||
|
||||
logger.addHandler(handler)
|
||||
|
||||
return logger
|
||||
|
||||
|
||||
def load_config(config_path='config/config.json'):
|
||||
"""
|
||||
Загрузка конфигурации из JSON файла.
|
||||
"""
|
||||
if not os.path.exists(config_path):
|
||||
raise FileNotFoundError(f"Конфигурационный файл не найден: {config_path}")
|
||||
|
||||
with open(config_path, 'r') as file:
|
||||
return json.load(file)
|
||||
return logger
|
||||
@@ -3,12 +3,9 @@ import uuid
|
||||
import string
|
||||
import secrets
|
||||
import json
|
||||
from utils.LogCon import setup_logger, load_config
|
||||
from datetime import datetime, timedelta
|
||||
from dateutil.relativedelta import relativedelta
|
||||
|
||||
config = load_config()
|
||||
|
||||
|
||||
|
||||
def generate_uuid():
|
||||
|
||||
Reference in New Issue
Block a user