This commit is contained in:
Marian Steinbach 2021-11-11 20:09:20 +01:00
parent 5ad73edf7a
commit df314c0677
2 changed files with 12 additions and 10 deletions

View file

@ -42,6 +42,7 @@ class Rater(AbstractRater):
# Calculate score based on the largest value found for a URL.
# See https://github.com/netzbegruenung/green-spider/issues/11#issuecomment-600307544
# for details.
if len(payloads_for_urls) > 0:
value = max(payloads_for_urls)
if value < 994000:
score = 1

View file

@ -42,6 +42,7 @@ class Rater(AbstractRater):
# Calculate score based on the largest value found for a URL.
# See https://github.com/netzbegruenung/green-spider/issues/11#issuecomment-600307544
# for details.
if len(num_requests_for_urls) > 0:
value = max(num_requests_for_urls)
if value <= 28:
score = 1.0