mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
fixed pymongo connection issue
This commit is contained in:
@@ -13,7 +13,7 @@ class DbManager(object):
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
self.mongo = MongoClient(host=MONGO_HOST, port=MONGO_PORT)
|
||||
self.mongo = MongoClient(host=MONGO_HOST, port=MONGO_PORT, connect=False)
|
||||
self.db = self.mongo[MONGO_DB]
|
||||
|
||||
def save(self, col_name: str, item: dict, **kwargs) -> None:
|
||||
|
||||
Reference in New Issue
Block a user