config.MONGODB_PORT应该int

pull/171/head
XBC_D2O 2025-03-11 00:31:55 +08:00 committed by GitHub
parent 0f5f1c920d
commit 85c377f3c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -708,7 +708,7 @@ start_time = time.time()
Database.initialize( Database.initialize(
host= config.MONGODB_HOST, host= config.MONGODB_HOST,
port= config.MONGODB_PORT, port=int(config.MONGODB_PORT),
db_name= config.DATABASE_NAME, db_name= config.DATABASE_NAME,
username= config.MONGODB_USERNAME, username= config.MONGODB_USERNAME,
password= config.MONGODB_PASSWORD, password= config.MONGODB_PASSWORD,
@ -722,4 +722,4 @@ hippocampus = Hippocampus(memory_graph)
hippocampus.sync_memory_from_db() hippocampus.sync_memory_from_db()
end_time = time.time() end_time = time.time()
print(f"\033[32m[加载海马体耗时: {end_time - start_time:.2f} 秒]\033[0m") print(f"\033[32m[加载海马体耗时: {end_time - start_time:.2f} 秒]\033[0m")