code cleanup

This commit is contained in:
Marvin Zhang
2019-06-21 12:34:48 +08:00
parent 6f07e1cd69
commit b57efe4d63

View File

@@ -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__ = """