From b57efe4d63b4a58b4cc35e163bc5699a02eee446 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Fri, 21 Jun 2019 12:34:48 +0800 Subject: [PATCH] code cleanup --- crawlab/db/manager.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/crawlab/db/manager.py b/crawlab/db/manager.py index c7eb16e1..ac157dfb 100644 --- a/crawlab/db/manager.py +++ b/crawlab/db/manager.py @@ -1,11 +1,8 @@ from bson import ObjectId -from mongoengine import connect from pymongo import MongoClient, DESCENDING from config import MONGO_HOST, MONGO_PORT, MONGO_DB, MONGO_USERNAME, MONGO_PASSWORD, MONGO_AUTH_DB from utils import is_object_id -connect(db=MONGO_DB, host=MONGO_HOST, port=MONGO_PORT) - class DbManager(object): __doc__ = """