Skip to content

Commit

Permalink
SpamHandling: PEP8 visual Indent match up
Browse files Browse the repository at this point in the history
  • Loading branch information
teward committed Jan 17, 2017
1 parent 092afba commit 2cd7c3a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spamhandling.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ def handle_spam(title, body, poster, site, post_url, poster_url, post_id, reason
reason = reason[:1].upper() + reason[1:] # reason is capitalised, unlike the entries of reasons list
datahandling.append_to_latest_questions(site, post_id, title if not is_answer else "")
if len(reasons) == 1 and ("all-caps title" in reasons or
"repeating characters in title" in reasons or
"repeating characters in body" in reasons or
"repeating characters in answer" in reasons or
"repeating words in title" in reasons or
"repeating words in body" in reasons or
"repeating words in answer" in reasons):
"repeating characters in title" in reasons or
"repeating characters in body" in reasons or
"repeating characters in answer" in reasons or
"repeating words in title" in reasons or
"repeating words in body" in reasons or
"repeating words in answer" in reasons):
datahandling.add_auto_ignored_post((post_id, site, datetime.now()))
if why is not None and why != "":
datahandling.add_why(site, post_id, why)
Expand Down

0 comments on commit 2cd7c3a

Please sign in to comment.