dont set replace to empty string
This commit is contained in:
parent
703d433788
commit
c1e6bf36e9
2
utils.py
2
utils.py
|
@ -113,6 +113,8 @@ def replacePlaceNames(old, new, operator="", start=0, end=100):
|
||||||
for m in matchedPlaces:
|
for m in matchedPlaces:
|
||||||
value = m['value']
|
value = m['value']
|
||||||
new_value = value.replace(old, new).strip()
|
new_value = value.replace(old, new).strip()
|
||||||
|
if new_value = '':
|
||||||
|
continue
|
||||||
ret.append(api.editAnnotation({
|
ret.append(api.editAnnotation({
|
||||||
'id': m['id'],
|
'id': m['id'],
|
||||||
'in': m['in'],
|
'in': m['in'],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user