Subversion Repositories SmartDukaan

Rev

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

Rev 15821 Rev 15822
Line 30... Line 30...
30
        window = req.get_param_as_int("window")
30
        window = req.get_param_as_int("window")
31
        string1 = req.get_param("searchMap")
31
        string1 = req.get_param("searchMap")
32
        orderType = req.get_param("type")
32
        orderType = req.get_param("type")
33
        searchMap={}
33
        searchMap={}
34
        if orderType is not None and orderType != "":
34
        if orderType is not None and orderType != "":
35
            if orderType=='needamazonorderdetail':
35
            if orderType in ['needamazonorderdetail','needamazonordertrack']:
36
                searchMap={"$or":[{"subOrders.closed":False,"subOrders.trackingUrl":{"$exists":True}}, {"status":"html_required"}], "storeId":1}
36
                searchMap={"$or":[{"subOrders.closed":False,"subOrders.trackingUrl":{"$exists":True}}, {"status":"html_required"}], "storeId":1}
37
        elif string1 is not None and string1 != "":
37
        elif string1 is not None and string1 != "":
38
            try:
38
            try:
39
                searchMap = json.loads(string1, encoding='utf-8')
39
                searchMap = json.loads(string1, encoding='utf-8')
40
            except:
40
            except: