From 66298d2ea4fcd1c1cef01235cccfacacad5825ca Mon Sep 17 00:00:00 2001 From: Oleg Plakhotniuk Date: Fri, 6 Feb 2015 01:45:51 -0600 Subject: [PATCH] Skip "On the way" orders at Amazon. Closes #1716 --- modules/amazon/pages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/amazon/pages.py b/modules/amazon/pages.py index 4233bcd8..806b049e 100644 --- a/modules/amazon/pages.py +++ b/modules/amazon/pages.py @@ -82,7 +82,8 @@ class OrderPage(AmazonPage): # Payment for not yet shipped orders may change, and is not always # available. return bool([x for s in [u'Not Yet Shipped', u'Not yet shipped', - u'Preparing for Shipment', u'Shipping now', u'In transit'] + u'Preparing for Shipment', u'Shipping now', u'In transit', + u'On the way'] for x in self.doc.xpath(u'//*[contains(text(),"%s")]' % s)])