From 8a53a3854304a3ea097fc4d5d9cad10502c6b1ad Mon Sep 17 00:00:00 2001 From: Soxoj <31013580+soxoj@users.noreply.github.com> Date: Sat, 26 Feb 2022 16:43:40 +0300 Subject: [PATCH] Fixed the rest of false positives for now (#371) * Fixed the rest of false positives for now * Fixed tag * Updated site list and statistics --- maigret/maigret.py | 2 +- maigret/resources/data.json | 35 ++++++++++++++++++++++++----------- sites.md | 18 +++++++++--------- utils/update_site_data.py | 2 +- 4 files changed, 35 insertions(+), 22 deletions(-) diff --git a/maigret/maigret.py b/maigret/maigret.py index 224b33c..17700d4 100755 --- a/maigret/maigret.py +++ b/maigret/maigret.py @@ -48,7 +48,7 @@ def notify_about_errors(search_results: QueryResultWrapper, query_notify): for e in errs: if not errors.is_important(e): continue - text = f'Too many errors of type "{e["err"]}" ({e["perc"]}%)' + text = f'Too many errors of type "{e["err"]}" ({round(e["perc"],2)}%)' solution = errors.solution_of(e['err']) if solution: text = '. '.join([text, solution.capitalize()]) diff --git a/maigret/resources/data.json b/maigret/resources/data.json index 124c439..dd58ebf 100644 --- a/maigret/resources/data.json +++ b/maigret/resources/data.json @@ -1462,6 +1462,7 @@ "forum", "ru" ], + "disabled": true, "checkType": "message", "absenceStrs": [ "\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d" @@ -18145,6 +18146,7 @@ "tags": [ "ru" ], + "disabled": true, "checkType": "status_code", "alexaRank": 6054365, "urlMain": "http://linuxmint.info", @@ -24487,23 +24489,35 @@ }, "thoughts.com": { "tags": [ - "in" + "blog" + ], + "checkType": "message", + "absenceStrs": [ + "Start a Blog" + ], + "presenseStrs": [ + "– Thoughts.com" ], - "engine": "engine404get", "urlMain": "http://thoughts.com", - "url": "http://thoughts.com/profile/{username}", + "url": "http://thoughts.com/members/{username}", "usernameUnclaimed": "noonewouldeverusethis7", - "usernameClaimed": "red" + "usernameClaimed": "alicia12" }, "hackernoon.com": { "tags": [ - "in", - "us" + "us", + "news" + ], + "checkType": "message", + "absenceStrs": [ + "HackerNoon" + ], + "presenseStrs": [ + " | HackerNoon" ], - "engine": "engine404message", "urlMain": "https://hackernoon.com", "url": "https://hackernoon.com/u/{username}", - "usernameUnclaimed": "noonewouldeverusethis7", + "usernameUnclaimed": "noonewouldeverusethis71", "usernameClaimed": "god" }, "Intigriti": { @@ -28479,10 +28493,9 @@ }, "photoshop-kopona.com": { "absenceStrs": [ - "noonewouldeverusethis7 » \u0420\u0435\u0441\u0443\u0440\u0441\u044b \u0434\u043b\u044f \u0424\u043e\u0442\u043e\u0448\u043e\u043f\u0430" + "