Subversion Repositories SmartDukaan

Rev

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

Rev 19511 Rev 19519
Line 230... Line 230...
230
        offset = req.get_param_as_int("offset")
230
        offset = req.get_param_as_int("offset")
231
        limit = req.get_param_as_int("limit")
231
        limit = req.get_param_as_int("limit")
232
        sort = req.get_param("sort")
232
        sort = req.get_param("sort")
233
        direction = req.get_param_as_int("direction")
233
        direction = req.get_param_as_int("direction")
234
        filterData = req.get_param('filterData')
234
        filterData = req.get_param('filterData')
235
        if categoryId!=6:
-
 
236
            result = Mongo.getNewDeals(int(userId), categoryId, offset, limit, sort, direction, filterData)
235
        result = Mongo.getNewDeals(int(userId), categoryId, offset, limit, sort, direction, filterData)
237
        else:
-
 
238
            result = Mongo.getAccesoryDeals(int(userId), categoryId, offset, limit, sort, direction, filterData)
-
 
239
        resp.body = dumps(result) 
236
        resp.body = dumps(result) 
240
        
237
        
241
class MasterData():
238
class MasterData():
242
    def on_get(self,req, resp, skuId):
239
    def on_get(self,req, resp, skuId):
243
        showDp = req.get_param_as_int("showDp")
240
        showDp = req.get_param_as_int("showDp")