Subversion Repositories SmartDukaan

Rev

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

Rev 15558 Rev 15559
Line 513... Line 513...
513
                f.close() # you can omit in most cases as the destructor will call if
513
                f.close() # you can omit in most cases as the destructor will call if
514
                result = self.parseOrderRawHtml(merchantOrder['orderId'], merchantOrder['subTagId'], merchantOrder['userId'], rawHtml, url, True)['result']
514
                result = self.parseOrderRawHtml(merchantOrder['orderId'], merchantOrder['subTagId'], merchantOrder['userId'], rawHtml, url, True)['result']
515
                try:
515
                try:
516
                    order = session.query(OrdersRaw).filter_by(id=merchantOrder['orderId']).first()
516
                    order = session.query(OrdersRaw).filter_by(id=merchantOrder['orderId']).first()
517
                    order.status = result
517
                    order.status = result
518
                    order.raw_html = rawHtml
518
                    order.rawhtml = rawHtml
519
                    session.commit()
519
                    session.commit()
520
                finally:
520
                finally:
521
                    session.close()
521
                    session.close()
522
                return 'PARSED_SUCCESS'
522
                return 'PARSED_SUCCESS'
523
                pass
523
                pass