Subversion Repositories SmartDukaan

Rev

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

Rev 17928 Rev 18088
Line 1583... Line 1583...
1583
        result = Mongo.getDummyUser(user_id)
1583
        result = Mongo.getDummyUser(user_id)
1584
        resp.body = json.dumps(result, encoding='utf-8')
1584
        resp.body = json.dumps(result, encoding='utf-8')
1585
 
1585
 
1586
class SearchSubCategory:
1586
class SearchSubCategory:
1587
    def on_get(self,req, resp):
1587
    def on_get(self,req, resp):
1588
        subCategoryId = req.get_param_as_int("subCategoryId")
1588
        subCategoryIds = req.get_param("subCategoryId")
1589
        searchTerm = req.get_param("searchTerm")
1589
        searchTerm = req.get_param("searchTerm")
1590
        offset = req.get_param_as_int("offset")
1590
        offset = req.get_param_as_int("offset")
1591
        limit = req.get_param_as_int("limit")
1591
        limit = req.get_param_as_int("limit")
1592
        
1592
        
1593
        result = Mongo.getDealsForSearchText(subCategoryId, searchTerm,offset, limit)
1593
        result = Mongo.getDealsForSearchText(subCategoryIds, searchTerm,offset, limit)
1594
        resp.body = json.dumps(result, encoding='utf-8')
1594
        resp.body = json.dumps(result, encoding='utf-8')
1595
 
1595
 
1596
class SearchSubCategoryCount:
1596
class SearchSubCategoryCount:
1597
    def on_get(self,req, resp):
1597
    def on_get(self,req, resp):
1598
        subCategoryId = req.get_param_as_int("subCategoryId")
1598
        subCategoryIds = req.get_param("subCategoryId")
1599
        searchTerm = req.get_param("searchTerm")
1599
        searchTerm = req.get_param("searchTerm")
1600
        result = Mongo.getCountForSearchText(subCategoryId, searchTerm)
1600
        result = Mongo.getCountForSearchText(subCategoryIds, searchTerm)
1601
        resp.body = json.dumps(result, encoding='utf-8')
1601
        resp.body = json.dumps(result, encoding='utf-8')
1602
 
-
 
1603
        
-
 
1604
    
-
 
1605
 
-
 
1606
    
-
 
1607
    
-
 
1608
    
1602
    
1609
def main():
1603
def main():
1610
    #tagActivatedReatilers()
1604
    #tagActivatedReatilers()
1611
    a = RetailerDetail()
1605
    a = RetailerDetail()
1612
    retailer = a.getNotActiveRetailer()
1606
    retailer = a.getNotActiveRetailer()