Constant list

main
Bob Mottram 2019-11-16 12:14:14 +00:00
parent fb2eb659e2
commit 5fdb836cf5
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ def getStatusNumber() -> (str,str):
def isEvil(domain: str) -> bool:
# https://www.youtube.com/watch?v=5qw1hcevmdU
evilDomains=['gab.com','gabfed.com','spinster.xyz','kiwifarms.cc','djitter.com']
evilDomains=('gab.com','gabfed.com','spinster.xyz','kiwifarms.cc','djitter.com')
for concentratedEvil in evilDomains:
if domain.endswith(concentratedEvil):
return True
@ -99,7 +99,7 @@ def domainPermitted(domain: str, federationList: []):
def urlPermitted(url: str,federationList: [],capability: str):
if isEvil(url):
return False
if len(federationList)==0:
if not federationList:
return True
for domain in federationList:
if domain in url: