| 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')
|
247 |
source = req.get_param('source')
|
| 248 |
tag_ids = req.get_param_as_list('tag_ids')
|
248 |
tag_ids = req.get_param_as_list('tag_ids')
|
| 249 |
if categoryId!=6:
|
249 |
if categoryId!=6:
|
| 250 |
result = Mongo.getNewDeals(int(userId), categoryId, offset, limit, sort, direction, filterData, source, tag_ids)
|
250 |
result = Mongo.getNewDeals(int(userId), categoryId, offset, limit, sort, direction, filterData, source, tag_ids)
|
| 251 |
else:
|
251 |
else:
|
| 252 |
result = Mongo.getAccesoryDeals(int(userId), categoryId, offset, limit, sort, direction, filterData, source, tag_ids)
|
252 |
result = Mongo.getAccesoryDeals(int(userId), categoryId, offset, limit, sort, direction, filterData, source, tag_ids)
|