Merge remote-tracking branch 'origin' into agent-update

This commit is contained in:
Wenjie Zhang 2025-04-01 18:39:10 +08:00
commit 2d06c59008
2 changed files with 5 additions and 4 deletions

View File

@ -350,10 +350,10 @@ class GraphDatabase:
with self.driver.session() as session:
graph_info = session.execute_read(query)
# 添加时间戳
from datetime import datetime
graph_info["last_updated"] = datetime.now().isoformat()
return graph_info
# 添加时间戳
from datetime import datetime
graph_info["last_updated"] = datetime.now().isoformat()
return graph_info
except Exception as e:
logger.error(f"获取图数据库信息失败:{e}, {traceback.format_exc()}")

View File

@ -127,6 +127,7 @@ async def upload_file(
basename, ext = os.path.splitext(file.filename)
filename = f"{basename}_{hashstr(basename, 4, with_salt=True)}{ext}".lower()
file_path = os.path.join(upload_dir, filename)
os.makedirs(upload_dir, exist_ok=True)
with open(file_path, "wb") as buffer:
buffer.write(await file.read())