Пример #1
0
class FeWordCloudDate(Resource):
    def __init__(self):
        self.db = MongoDAO('jobSearch', 'frontdetail')

    def get(self):
        info = self.db.find(projection={"createTime": 1, "_id": 0})
        return info[0], 200
Пример #2
0
class FeWordCloud(Resource):
    def __init__(self):
        self.db = MongoDAO('jobSearch', 'frontdetail')
        self.reqparse = reqparse.RequestParser()
        self.reqparse.add_argument(
            'createTime', type=str, required=True, help="is required", location='args')

    def get(self):
        query = self.reqparse.parse_args()
        return self.db.findOne(query, projection={'_id': 0}), 200
Пример #3
0
 def __init__(self):
     MongoDAO.__init__(self, 'blog', 'commit')
Пример #4
0
 def __init__(self):
     MongoDAO.__init__(self, 'blog', 'files')
Пример #5
0
 def __init__(self):
     MongoDAO.__init__(self, 'blog', 'article')
Пример #6
0
 def __init__(self):
     MongoDAO.__init__(self, 'blog', 'users')
Пример #7
0
 def __init__(self):
     self.db = MongoDAO('jobSearch', 'frontdetail')
Пример #8
0
 def __init__(self):
     self.db = MongoDAO('jobSearch', 'frontdetail')
     self.reqparse = reqparse.RequestParser()
     self.reqparse.add_argument(
         'createTime', type=str, required=True, help="is required", location='args')