|
@@ -1,20 +1,15 @@
|
|
|
# -*- coding: utf-8 -*-
|
|
# -*- coding: utf-8 -*-
|
|
|
-
|
|
|
|
|
-import time
|
|
|
|
|
-import json
|
|
|
|
|
import sys
|
|
import sys
|
|
|
import os
|
|
import os
|
|
|
|
|
|
|
|
-sys.path.append(os.path.join(os.path.abspath(__file__).split('auto_message')[0] + 'auto_message'))
|
|
|
|
|
-from datetime import datetime
|
|
|
|
|
|
|
+from utils.utils import LoadConfig
|
|
|
|
|
|
|
|
-from utils.utils_send_gotify import GotifyNotifier
|
|
|
|
|
-from utils.utils_send_serverchan import ServerChanNotifier
|
|
|
|
|
|
|
+sys.path.append(os.path.join(os.path.abspath(__file__).split('AutoInfo')[0] + 'AutoInfo'))
|
|
|
|
|
|
|
|
-from base.base_load_config import load_config, get_base_path
|
|
|
|
|
|
|
+from utils.utils import *
|
|
|
|
|
|
|
|
-config_json = load_config()
|
|
|
|
|
-base_project = get_base_path()
|
|
|
|
|
|
|
+config_json = LoadConfig().load_config()
|
|
|
|
|
+base_project = LoadConfig().get_base_path()
|
|
|
|
|
|
|
|
DB_USER = config_json.get('DB_USER')
|
|
DB_USER = config_json.get('DB_USER')
|
|
|
DB_PASSWORD = config_json.get('DB_PASSWORD')
|
|
DB_PASSWORD = config_json.get('DB_PASSWORD')
|
|
@@ -22,7 +17,6 @@ DB_IP = config_json.get('DB_IP')
|
|
|
DB_PORT = config_json.get('DB_PORT')
|
|
DB_PORT = config_json.get('DB_PORT')
|
|
|
MONGO_LINK = f'mongodb://{DB_USER}:{DB_PASSWORD}@{DB_IP}:{DB_PORT}/'
|
|
MONGO_LINK = f'mongodb://{DB_USER}:{DB_PASSWORD}@{DB_IP}:{DB_PORT}/'
|
|
|
|
|
|
|
|
-from utils.utils_logs_handle import LogsHandle
|
|
|
|
|
from pymongo import MongoClient
|
|
from pymongo import MongoClient
|
|
|
|
|
|
|
|
|
|
|