modify dbpath

This commit is contained in:
oscarz
2025-03-19 08:51:42 +08:00
parent 246c6a27aa
commit 7c8b27339c
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ from collections import defaultdict
home_dir = os.path.expanduser("~")
global_host_data_dir = f'{home_dir}/hostdir/stock_data'
global_share_db_dir = f'{home_dir}/sharedata/sqlite'
# 统计日志频率
log_count = defaultdict(int) # 记录日志的次数

View File

@ -7,7 +7,7 @@ import sys
from datetime import datetime
# 连接 SQLite 数据库
DB_PATH = f"{config.global_host_data_dir}/stock_report.db" # 替换为你的数据库文件
DB_PATH = f"{config.global_share_db_dir}/stock_report.db" # 替换为你的数据库文件
conn = sqlite3.connect(DB_PATH)
cursor = conn.cursor()