Subversion Repositories SmartDukaan

Rev

Rev 13970 | Rev 14041 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13970 Rev 14034
Line 139... Line 139...
139
        categoryId = req.get_param_as_int("categoryId")
139
        categoryId = req.get_param_as_int("categoryId")
140
        offset = req.get_param_as_int("offset")
140
        offset = req.get_param_as_int("offset")
141
        limit = req.get_param_as_int("limit")
141
        limit = req.get_param_as_int("limit")
142
        sort = req.get_param("sort")
142
        sort = req.get_param("sort")
143
        direction = req.get_param_as_int("direction")
143
        direction = req.get_param_as_int("direction")
144
        result = Mongo.getDeals(categoryId, offset, limit, sort, direction)
144
        result = Mongo.getNewDeals(userId, categoryId, offset, limit, sort, direction)
145
        json_docs = [json.dumps(doc, default=json_util.default) for doc in result]
145
        json_docs = [json.dumps(doc, default=json_util.default) for doc in result]
146
        resp.body = json.dumps(json_docs, encoding='utf-8')
146
        resp.body = json.dumps(json_docs, encoding='utf-8')
147
 
147
 
148
class MasterData():
148
class MasterData():
149
    def on_get(self,req, resp, skuId):
149
    def on_get(self,req, resp, skuId):