Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: gamestop false positives #395

Merged
merged 1 commit into from
Sep 30, 2020
Merged

fix: gamestop false positives #395

merged 1 commit into from
Sep 30, 2020

Conversation

adolfox
Copy link
Contributor

@adolfox adolfox commented Sep 30, 2020

Fixed issue where gamestop would generate false positives because the string add to cart was still included even when there was no stock available. Just added the outOfStock label to look for not available, which is actually displayed on the button.

Description

Fixes #392

Testing

Before the fix, as soon as I ran the bot, a notification would be created for gamestop having stock. After the fix, the info log note shows gamestop out of stock as well. Ran it for a at least 10 to 20 minutes with no issues.

Before
image

After
image

Fixed issue where gamestop would generate false positives because the string add to cart was still included even when there was no stock available.  Just added the outOfStock label to look for not available, which is actually displayed on the button.
@adolfox adolfox requested a review from jef as a code owner September 30, 2020 19:43
Copy link
Owner

@jef jef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DOH! Forgot we had both of these. Thank you!

@jef jef merged commit d3bb507 into jef:main Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GameStop false positive
2 participants