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