| 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 |
traceback.print_exc()
|
| 80 |
raise falcon.HTTPError(falcon.HTTP_400,
|
80 |
raise falcon.HTTPError(falcon.HTTP_400,
|
| 81 |
'Malformed JSON',
|
81 |
'Malformed JSON',
|
| 82 |
'Could not decode the request body. The '
|
82 |
'Could not decode the request body. The '
|
| 83 |
'JSON was incorrect.')
|
83 |
'JSON was incorrect.')
|
| 84 |
result = Mongo.getMerchantOrdersByUser(int(userId), page, window, searchMap)
|
84 |
result = Mongo.getMerchantOrdersByUser(int(userId), page, window, searchMap)
|