Skip to content

Commit

Permalink
Log reserve on price match
Browse files Browse the repository at this point in the history
  • Loading branch information
bravochar committed Apr 14, 2021
1 parent 7e97795 commit ee3b2da
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions stores/amazon.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,9 +757,8 @@ def check_stock(self, asin, reserve_min, reserve_max, retry=0):
(ship_float + price_float) >= reserve_min
or math.isclose((price_float + ship_float), reserve_min, abs_tol=0.01)
):
log.info(f"Item {asin} in stock and in reserve range!")
log.debug(
f"{reserve_min} <= {price_float} + {ship_float} shipping <= {reserve_max}"
log.info(
f"Item {asin} in stock and in reserve range: {price_float} + {ship_float} shipping <= {reserve_max}"
)
log.info("Adding to cart")
# Get the offering ID
Expand Down

0 comments on commit ee3b2da

Please sign in to comment.