-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Lvl 1 Accounts not working due to mobile searches #217
Comments
Try dev build and run the desktop only flag |
I've solved this problem by a simple mod on the browser.py in function getRemainingSearches:
|
Good try, but it's better to raise an exception if these fields aren't as we expect, rather than hide it since it'll definitely cause problems with execution later. Checkout this for more general reasoning: https://stackoverflow.com/a/77361/4164390. I've made a change to develop so that getRemainingSearches should be more reliable (without returning None/0) |
The fact is that on account of level 1, the mobileSearch aren't counted for rewards, hence the dashboard has't that section... so here we cannot expect that the mobileSearch section is present, in my opinion. |
Ah right, I see now. Hmm |
Should be fixed, give develop a try. See 81afb32. Thanks for the contribution @Ices-Eyes. Modified it a bit to check for level. |
Before submitting a bug report...
This bug wasn't already reported.
(I have checked every bug report on GitHub)
I've cleared the sessions folder.
Branch
develop
Commit
49e4930
Describe the bug
Lvl 1 Bing Rewards account dont work with the script since they re not allowed to farm points using the mobile searches yet, only the pc search searches are found
Copy and paste your error
2024-10-25 17:56:03,644 [INFO] [BING] Starting Desktop Edge Bing searches...
2024-10-25 17:56:08,000 [ERROR]
Traceback (most recent call last):
File "C:\Repositories\MS-Rewards-Farmer\main.py", line 40, in main
earned_points = executeBot(currentAccount, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Repositories\MS-Rewards-Farmer\main.py", line 246, in executeBot
searches.bingSearches()
File "C:\Repositories\MS-Rewards-Farmer\src\searches.py", line 110, in bingSearches
desktopAndMobileRemaining = self.browser.getRemainingSearches(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Repositories\MS-Rewards-Farmer\src\browser.py", line 268, in getRemainingSearches
mobileSearch: dict = counters["MobileSearch"][0]
~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'MobileSearch'
Screenshots
Value of dashboard variable
.
The text was updated successfully, but these errors were encountered: