mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Fixed wiki failure detection (was marking rarely checked wikis as flagged)
This commit is contained in:
parent
cec57a1309
commit
4735e04924
|
@ -143,7 +143,7 @@ class Domain:
|
||||||
for log in logs_last_10:
|
for log in logs_last_10:
|
||||||
if log.type == LogType.CONNECTION_ERROR:
|
if log.type == LogType.CONNECTION_ERROR:
|
||||||
failures += 1
|
failures += 1
|
||||||
if len(logs_last_10)/2 <= failures:
|
if max(len(logs_last_10)/2, 1) <= failures:
|
||||||
affected.add(wiki_url)
|
affected.add(wiki_url)
|
||||||
if len(affected) > len(self)/5:
|
if len(affected) > len(self)/5:
|
||||||
return affected
|
return affected
|
||||||
|
|
Loading…
Reference in a new issue