forked from 0x2620/pandora
match places/events in any case, update url-list in torrent to match current url
This commit is contained in:
parent
7140d4c3f5
commit
06069b71e2
4 changed files with 19 additions and 10 deletions
|
|
@ -29,7 +29,6 @@ def get_matches(obj, model, layer_type):
|
|||
if name in othername:
|
||||
super_matches.append(othername)
|
||||
|
||||
|
||||
exact = [l['id'] for l in filter(lambda l: l['type'] == layer_type, settings.CONFIG['layers'])]
|
||||
if exact:
|
||||
q = Q(value__iexact=obj.name)
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ def update_matching_events(id):
|
|||
for i in ids:
|
||||
e = Event.objects.get(pk=i)
|
||||
for name in [e.name] + list(e.alternativeNames):
|
||||
if name in annotation.value:
|
||||
if name.lower() in annotation.value.lower():
|
||||
e.update_matches()
|
||||
break
|
||||
|
||||
|
|
@ -29,6 +29,6 @@ def update_matching_places(id):
|
|||
for i in ids:
|
||||
e = Place.objects.get(pk=i)
|
||||
for name in [e.name] + list(e.alternativeNames):
|
||||
if name in annotation.value:
|
||||
if name.lower() in annotation.value.lower():
|
||||
e.update_matches()
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue