Skip to content
Snippets Groups Projects
Commit d07a247d authored by Simon Will's avatar Simon Will
Browse files

Remove bug where or(key=val1, key=val2) was added when replacing feedback

parent 135c433c
No related branches found
No related tags found
No related merge requests found
......@@ -68,10 +68,6 @@ def replace_names_in_nwr(nwr_features, nl, user_id, threshold):
parts.append(('name', ('or', *new_names)))
else:
parts.append(feat)
or_part = ['or']
for val in feat[1][1:]:
or_part.append((feat[0], val))
parts.append(tuple(or_part))
elif len(feat) == 2 and all(isinstance(f, str) for f in feat):
if feat[0] == 'name':
old_name = feat[1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment