forked from 0x2620/pandora
newlines
This commit is contained in:
parent
4f16b59458
commit
4969719231
2 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ class Annotation(models.Model):
|
|||
layer = self.get_layer()
|
||||
if self.value:
|
||||
self.value = utils.cleanup_value(self.value, layer['type'])
|
||||
self.findvalue = ox.decodeHtml(ox.stripTags(self.value).strip())
|
||||
self.findvalue = ox.decodeHtml(ox.stripTags(self.value).strip()).replace('\n ', ' ')
|
||||
sortvalue = sort_string(self.findvalue)
|
||||
if sortvalue:
|
||||
self.sortvalue = sortvalue[:900]
|
||||
|
|
|
@ -27,7 +27,7 @@ def update_matching_events(id):
|
|||
for n in Event.objects.all().values('id', 'name', 'alternativeNames'):
|
||||
names[n['id']] = [ox.decodeHtml(n) for n in [n['name']] + json.loads(n['alternativeNames'])]
|
||||
|
||||
value = a.findvalue.lower()
|
||||
value = a.findvalue.lower().replace('\n', ' ')
|
||||
update = []
|
||||
for i in names:
|
||||
for name in names[i]:
|
||||
|
|
Loading…
Reference in a new issue