Skip to content

Commit

Permalink
still too many blank lines
Browse files Browse the repository at this point in the history
Example: 136941, autopull
  • Loading branch information
𝐢𝐁𝐮𝐠 ♦ committed Sep 27, 2018
1 parent dc6cbf1 commit f5f7578
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spamhandling.py
Expand Up @@ -54,14 +54,14 @@ def check_if_spam(post):
else:
blacklisted_by = blacklisted_user_data[1]
blacklisted_post_url = blacklisted_user_data[2]
if why and why[-1] == "\n":
why = why[:-1]
if why and why[-1] != "\n":
why += "\n"
if blacklisted_post_url:
rel_url = blacklisted_post_url.replace("http:", "", 1)
why += "\nBlacklisted user - blacklisted for {} ({}) by {}".format(
why += "Blacklisted user - blacklisted for {} ({}) by {}".format(
blacklisted_post_url, to_metasmoke_link(rel_url), blacklisted_by)
else:
why += "\n" + u"Blacklisted user - blacklisted by {}".format(blacklisted_by)
why += "Blacklisted user - blacklisted by {}".format(blacklisted_by)
if test:
result = None
if datahandling.has_already_been_posted(post.post_site, post.post_id, post.title):
Expand Down

0 comments on commit f5f7578

Please sign in to comment.