Subversion Repositories SmartDukaan

Rev

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

Rev 19556 Rev 19558
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:
235
        result = Mongo.getNewDeals(int(userId), categoryId, offset, limit, sort, direction, filterData)
236
            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)
236
        resp.body = dumps(result) 
239
        resp.body = dumps(result) 
237
        
240
        
238
class MasterData():
241
class MasterData():
239
    def on_get(self,req, resp, skuId):
242
    def on_get(self,req, resp, skuId):
240
        showDp = req.get_param_as_int("showDp")
243
        showDp = req.get_param_as_int("showDp")