Cleaner spam logging.

This commit is contained in:
Samuel Clay 2015-11-23 11:28:45 -08:00
parent 9f8fceaf10
commit a23dc55636

View file

@ -408,10 +408,10 @@ class Profile(models.Model):
has_numbers = numerics.search(user.username) has_numbers = numerics.search(user.username)
if opens is None and not reads and has_numbers: if opens is None and not reads and has_numbers:
usernames.add(user.username) usernames.add(user.username)
print user.username, user.email, opens, reads print " ---> Numerics: %-20s %-30s %-6s %-6s" % (user.username, user.email, opens, reads)
elif not user.profile.last_seen_ip: elif not user.profile.last_seen_ip:
usernames.add(user.username) usernames.add(user.username)
print " ---> No IP: %s %s %s %s" % (user.username, user.email, opens, reads) print " ---> No IP: %-20s %-30s %-6s %-6s" % (user.username, user.email, opens, reads)
if not confirm: return usernames if not confirm: return usernames