fix: [Mails] change module output

This commit is contained in:
Terrtia 2020-05-11 11:22:09 +02:00
parent 4d318643ce
commit 0dfddd318b
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -193,9 +193,9 @@ if __name__ == "__main__":
server_statistics.hincrby('mail_by_tld:{}'.format(item_date), tld, 1)
msg = 'Mails;{};{};{};Checked {} e-mail(s);{}'.format(Item.get_source(item_id), item_date, Item.get_item_basename(item_id), num_valid_email, item_id)
print(msg)
if num_valid_email > mail_threshold:
print('{} Checked {} e-mail(s)'.format(item_id, num_valid_email))
publisher.warning(msg)
#Send to duplicate
p.populate_set_out(item_id, 'Duplicate')