Subversion Repositories SmartDukaan

Rev

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

Rev 17661 Rev 17722
Line 74... Line 74...
74
                searchMap={"$or":[{"subOrders.closed":False,"subOrders.trackingUrl":{"$exists":False},"subOrders.trackAfter":{"$lt":utils.getCurrTimeStamp()}}, {"status":"html_required"}], "storeId":1}
74
                searchMap={"$or":[{"subOrders.closed":False,"subOrders.trackingUrl":{"$exists":False},"subOrders.trackAfter":{"$lt":utils.getCurrTimeStamp()}}, {"status":"html_required"}], "storeId":1}
75
        elif string1 is not None and string1 != "":
75
        elif string1 is not None and string1 != "":
76
            try:
76
            try:
77
                searchMap = json.loads(string1, encoding='utf-8')
77
                searchMap = json.loads(string1, encoding='utf-8')
78
            except:
78
            except:
-
 
79
                traceback.print_stack()
79
                raise falcon.HTTPError(falcon.HTTP_400,
80
                raise falcon.HTTPError(falcon.HTTP_400,
80
                    'Malformed JSON',
81
                    'Malformed JSON',
81
                    'Could not decode the request body. The '
82
                    'Could not decode the request body. The '
82
                    'JSON was incorrect.')
83
                    'JSON was incorrect.')
83
        result = Mongo.getMerchantOrdersByUser(int(userId), page, window, searchMap)
84
        result = Mongo.getMerchantOrdersByUser(int(userId), page, window, searchMap)