Subversion Repositories SmartDukaan

Rev

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

Rev 21161 Rev 22256
Line 242... Line 242...
242
        offset = req.get_param_as_int("offset")
242
        offset = req.get_param_as_int("offset")
243
        limit = req.get_param_as_int("limit")
243
        limit = req.get_param_as_int("limit")
244
        sort = req.get_param("sort")
244
        sort = req.get_param("sort")
245
        direction = req.get_param_as_int("direction")
245
        direction = req.get_param_as_int("direction")
246
        filterData = req.get_param('filterData')
246
        filterData = req.get_param('filterData')
-
 
247
        source = req.get_param_as_string('source')
-
 
248
        tag_ids = req.get_param_as_list('tag_ids')
247
        if categoryId!=6:
249
        if categoryId!=6:
248
            result = Mongo.getNewDeals(int(userId), categoryId, offset, limit, sort, direction, filterData)
250
            result = Mongo.getNewDeals(int(userId), categoryId, offset, limit, sort, direction, filterData, source, tag_ids)
249
        else:
251
        else:
250
            result = Mongo.getAccesoryDeals(int(userId), categoryId, offset, limit, sort, direction, filterData)
252
            result = Mongo.getAccesoryDeals(int(userId), categoryId, offset, limit, sort, direction, filterData, source, tag_ids)
251
        resp.body = dumps(result) 
253
        resp.body = dumps(result) 
252
        
254
        
253
class MasterData():
255
class MasterData():
254
    def on_get(self,req, resp, skuId):
256
    def on_get(self,req, resp, skuId):
255
        showDp = req.get_param_as_int("showDp")
257
        showDp = req.get_param_as_int("showDp")