Subversion Repositories SmartDukaan

Rev

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

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