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

Add to ignore if scanning too often #4535

Merged
merged 8 commits into from
Aug 22, 2016
Merged

Add to ignore if scanning too often #4535

merged 8 commits into from
Aug 22, 2016

Conversation

mjmadsen
Copy link
Contributor

@mjmadsen mjmadsen commented Aug 22, 2016

  • Fixed some whitespace issues - would those have caused the if/else to not parse as we would expect?
  • Added stop to ignore list if we get a search too often error.
  • Increased default spinfort wait times

Hopefully fixes #4497 and reoccurring similar problems

@mention-bot
Copy link

@mjmadsen, thanks for your PR! By analyzing the annotation information on this pull request, we identified @douglascamata, @BriceSD and @TheSavior to be potential reviewers

c.execute("SELECT COUNT(name) FROM sqlite_master WHERE type='table' AND name='softban_log'")
result = c.fetchone()

while True:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why there was a while True: ? It seems just one time run, why placed the while here

Copy link
Contributor Author

@mjmadsen mjmadsen Aug 22, 2016

Choose a reason for hiding this comment

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

I'm not terribly sure about this DB code.

@solderzzc
Copy link
Contributor

Yes, your fix will improve the real soft ban log.

@mjmadsen
Copy link
Contributor Author

@solderzzc That look better. Yeah, the original source had a break after each if and appeared to not need looping. Removed.

@solderzzc solderzzc merged commit c1cfaf6 into PokemonGoF:dev Aug 22, 2016
@solderzzc
Copy link
Contributor

@mjmadsen thanks a lot, got merged.

@Trico3 Trico3 mentioned this pull request Aug 23, 2016
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.

3 participants