Change bb to project_info.name

This commit is contained in:
DingZQ
2025-08-13 18:12:05 +08:00
parent d745e6f011
commit e4b1648041
9 changed files with 34 additions and 29 deletions

View File

@@ -705,7 +705,7 @@ def network_update(file_path: str) -> None:
print(f"history_patterns_flows文件存在开始处理...")
# 连接到 PostgreSQL 数据库(这里是数据库 "bb"
with psycopg.connect("dbname=bb host=127.0.0.1") as conn:
with psycopg.connect(f"dbname={project_info.name} host=127.0.0.1") as conn:
with conn.cursor() as cur:
with open(csv_path, newline='', encoding='utf-8-sig') as csvfile:
reader = csv.DictReader(csvfile)