-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Conversation
@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: |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Yes, your fix will improve the real soft ban log. |
@solderzzc That look better. Yeah, the original source had a break after each if and appeared to not need looping. Removed. |
@mjmadsen thanks a lot, got merged. |
Hopefully fixes #4497 and reoccurring similar problems