Subversion Repositories SmartDukaan

Rev

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

Rev 14084 Rev 14085
Line 218... Line 218...
218
                            bulk.find({'orderId': activeOrder['orderId']}).update({'$set':{'closed': closed}})            
218
                            bulk.find({'orderId': activeOrder['orderId']}).update({'$set':{'closed': closed}})            
219
                bulk.execute()
219
                bulk.execute()
220
                return 'PARSED_SUCCESS'
220
                return 'PARSED_SUCCESS'
221
            else:
221
            else:
222
                merchantOrderId = re.findall(r'https://www.amazon.in/gp/css/summary/edit.html\?orderID=(.*?)', url, re.IGNORECASE)[0] 
222
                merchantOrderId = re.findall(r'https://www.amazon.in/gp/css/summary/edit.html\?orderID=(.*?)', url, re.IGNORECASE)[0] 
223
                merchantOrder = self.db.merchantOrder.find({"merchantOrderId":merchantOrderId})
223
                merchantOrder = self.db.merchantOrder.find_one({"merchantOrderId":merchantOrderId})
224
                self.parseOrderRawHtml(merchantOrder['orderId'], merchantOrder['subTagId'], merchantOrder['userId'], rawHtml, url, False)
224
                self.parseOrderRawHtml(merchantOrder['orderId'], merchantOrder['subTagId'], merchantOrder['userId'], rawHtml, url, False)
225
                return 'PARSED_SUCCESS'
225
                return 'PARSED_SUCCESS'
226
                pass
226
                pass
227
            return 'PARSED_SUCCESS_NO_ORDERS'
227
            return 'PARSED_SUCCESS_NO_ORDERS'
228
        except:
228
        except: