Skip to content

Commit

Permalink
Merge pull request #681 from Hari-Nagarajan/hotfix3
Browse files Browse the repository at this point in the history
Hotfix 0.6.5
  • Loading branch information
DakkJaniels authored Apr 15, 2021
2 parents 7e2fc83 + 2180170 commit 70852d0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pyinstaller = "*"
requests = "==2.24.0"
click = "*"
selenium = "*"
chromedriver-py = "==88.0.4324.96"
chromedriver-py = "~=90.0"
furl = "*"
twilio = "*"
discord-webhook = "*"
Expand Down
2 changes: 1 addition & 1 deletion config/fairgame.conf
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
"//*[@id='sc-buy-box-ptc-button']"
],
"ATC": [
"//div[@id='aod-pinned-offer' or @id='aod-offer' or @id='olpOfferList']//input[@name='submit.addToCart']"
"//div[@id='aod-pinned-offer' or @id='aod-offer']//input[@name='submit.addToCart']"
],
"ATC_BUY_BOX":[
"//div[@id='qualifiedBuybox']//input[@id='add-to-cart-button']"
Expand Down
4 changes: 2 additions & 2 deletions stores/amazon.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def check_stock(self, asin, reserve_min, reserve_max, retry=0):
)
else:
prices = self.driver.find_elements_by_xpath(
"//div[@id='aod-pinned-offer' or @id='aod-offer']//div[contains(@id, 'aod-price')]//span[@class='a-price']//span[@class='a-offscreen']"
"//div[@id='aod-pinned-offer' or @id='aod-offer']//span[@class='a-price']//span[@class='a-offscreen']"
)
if prices:
break
Expand Down Expand Up @@ -844,7 +844,7 @@ def check_stock(self, asin, reserve_min, reserve_max, retry=0):
log.error(f" Price: {price_float} + {ship_float} shipping")
log.error(f" Max: {reserve_max}")

log.info(f"Offers exceed price range ({reserve_min:.2f}-{reserve_max:.2f})")
log.info(f"Offers exceed price range ({reserve_min:.2f}-{reserve_max:.2f})")
return in_stock

def attempt_atc(self, offering_id, max_atc_retries=DEFAULT_MAX_ATC_TRIES):
Expand Down
2 changes: 1 addition & 1 deletion utils/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# See https://www.python.org/dev/peps/pep-0440/ for specification
# See https://www.python.org/dev/peps/pep-0440/#examples-of-compliant-version-schemes for examples

__VERSION = "0.6.4"
__VERSION = "0.6.5"
version = Version(__VERSION)


Expand Down

0 comments on commit 70852d0

Please sign in to comment.