mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
fix: Settings import
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from application.core import settings
|
||||
from application.core.settings import Settings
|
||||
from pymongo import MongoClient
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ class MongoDB:
|
||||
Get the MongoDB client instance, creating it if necessary.
|
||||
"""
|
||||
if cls._client is None:
|
||||
cls._client = MongoClient(settings.MONGO_URI)
|
||||
cls._client = MongoClient(Settings.MONGO_URI)
|
||||
return cls._client
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user