Fixed several false positives, improved statistics info (#368)

* Fixed several false positives, improved statistics info

* Updated site list and statistics
This commit is contained in:
Soxoj
2022-02-26 15:31:15 +03:00
committed by GitHub
parent 61452d56d3
commit dcf5181e28
3 changed files with 40 additions and 21 deletions
+5 -2
View File
@@ -450,8 +450,11 @@ class MaigretDatabase:
for tag in filter(lambda x: not is_country_tag(x), site.tags):
tags[tag] = tags.get(tag, 0) + 1
output += f"Enabled/total sites: {total_count - disabled_count}/{total_count}\n\n"
output += f"Incomplete checks: {message_checks_one_factor}/{message_checks} (false positive risks)\n\n"
enabled_perc = round(100*(total_count-disabled_count)/total_count, 2)
output += f"Enabled/total sites: {total_count - disabled_count}/{total_count} = {enabled_perc}%\n\n"
checks_perc = round(100*message_checks_one_factor/message_checks, 2)
output += f"Incomplete checks: {message_checks_one_factor}/{message_checks} = {checks_perc}% (false positive risks)\n\n"
top_urls_count = 20
output += f"Top {top_urls_count} profile URLs:\n"