瀏覽代碼

完成人工定时

derrickx 1 年之前
父節點
當前提交
287bf5d4d8
共有 2 個文件被更改,包括 1 次插入1 次删除
  1. 0 0
      config.yaml
  2. 1 1
      tools/redis_pool.py

+ 0 - 0
tools/config.yaml → config.yaml


+ 1 - 1
tools/redis_pool.py

@@ -11,7 +11,7 @@ class redis_pool:
         # 获取当前目录
         current_dir = os.path.dirname(__file__)
         # 使用相对路径访问 config.yaml 文件
-        config_file = os.path.join(current_dir, 'config.yaml')
+        config_file = os.path.join(current_dir, '../config.yaml')
 
         with open(config_file, 'r') as file:
             config = yaml.load(file, Loader=yaml.FullLoader)