summaryrefslogtreecommitdiff
path: root/commcrawler/lookups.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-08-09 16:48:14 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-08-09 16:48:14 +0200
commite8cbb1cd58853e28ea756ed2ccd77363c54e04d2 (patch)
treed59e2912c1da89429228fb9bc9d0284e2964537b /commcrawler/lookups.py
parent0d17f3696f66b0cb66e560d06ae40d7b87900a8a (diff)
downloadComm-on-net-e8cbb1cd58853e28ea756ed2ccd77363c54e04d2.tar.bz2
Comm-on-net-e8cbb1cd58853e28ea756ed2ccd77363c54e04d2.zip
Let scrapy try domain with bad SSL
Diffstat (limited to 'commcrawler/lookups.py')
-rw-r--r--commcrawler/lookups.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/commcrawler/lookups.py b/commcrawler/lookups.py
index 106a69a..396490b 100644
--- a/commcrawler/lookups.py
+++ b/commcrawler/lookups.py
@@ -14,7 +14,7 @@ class TargetLookup(LookupChannel):
def get_query(self, q, request):
query = Q()
for term in q.strip().split(' '):
- subquery = Q(name__icontains=term)
+ subquery = Q(name__icontains=term) | Q(url__icontains=term)
query &= subquery
return self.model.objects.filter(query).order_by('name')[:20]