fix graph info error
This commit is contained in:
parent
b512b9ed22
commit
2f7bc6617a
@ -350,10 +350,10 @@ class GraphDatabase:
|
|||||||
with self.driver.session() as session:
|
with self.driver.session() as session:
|
||||||
graph_info = session.execute_read(query)
|
graph_info = session.execute_read(query)
|
||||||
|
|
||||||
# 添加时间戳
|
# 添加时间戳
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
graph_info["last_updated"] = datetime.now().isoformat()
|
graph_info["last_updated"] = datetime.now().isoformat()
|
||||||
return graph_info
|
return graph_info
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"获取图数据库信息失败:{e}, {traceback.format_exc()}")
|
logger.error(f"获取图数据库信息失败:{e}, {traceback.format_exc()}")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user