Skip to content

Commit

Permalink
[amazon] fix .com digital orders; change log level of unknown order l…
Browse files Browse the repository at this point in the history
…ink texts
  • Loading branch information
moritzj29 committed Mar 11, 2022
1 parent 83b58ad commit 3bb33fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions finance_dl/amazon.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def invoice_link_finder(invoice_link):
# different labels are possible e.g. for regular orders vs. Amazon fresh
if invoice_link.text != "":
# log non-empty link texts -> may be new type
logger.info(
logger.debug(
'Skipping invoice due to unknown invoice_link.text: %s',
invoice_link.text)
return (False, False)
Expand Down Expand Up @@ -468,7 +468,8 @@ def retrieve_all_order_groups():
# orders in separate Digital Orders list (relevant for .COM)
# other domains list digital orders within the regular order list
(digital_orders_link,), = self.wait_and_return(
lambda: self.find_elements_by_descendant_text_match(f'contains(., "{self.domain.digital_orders_text}")', 'a', only_displayed=True)
lambda: self.find_elements_by_descendant_text_match(
f'contains(., "{self.domain.digital_orders_menu_text}")', 'a', only_displayed=True)
)
scrape_lib.retry(lambda: self.click(digital_orders_link),
retry_delay=2)
Expand Down

0 comments on commit 3bb33fc

Please sign in to comment.