[fix] people have more than 30 domains x_x

This commit is contained in:
Laurent Peuch 2021-01-08 03:41:35 +01:00
parent a3be8ca8fb
commit 503ea4d440

View file

@ -125,7 +125,7 @@ async def check_http(request):
# Check domain list format # Check domain list format
assert isinstance(data["domains"], list), "'domains' ain't a list" assert isinstance(data["domains"], list), "'domains' ain't a list"
assert len(data["domains"]) > 0, "'domains' list is empty" assert len(data["domains"]) > 0, "'domains' list is empty"
assert len(data["domains"]) < 30, "You cannot test that many domains" assert len(data["domains"]) < 60, "You cannot test that many domains"
for domain in data["domains"]: for domain in data["domains"]:
assert isinstance(domain, str), "domain names must be strings" assert isinstance(domain, str), "domain names must be strings"
assert len(domain) < 100, "Domain %s name seems pretty long, that's suspicious...?" % domain assert len(domain) < 100, "Domain %s name seems pretty long, that's suspicious...?" % domain