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

Fix bug where replacing failed when a query didn’t contain any NE

parent d07a247d
No related branches found
No related tags found
No related merge requests found
......@@ -220,6 +220,4 @@ def increment_name_occurrences(mrl, user_id=None):
names = get_names_from_non_dist_features(features)
for name in names:
count = NameOccurrence.increment(name, user_id)
return count
NameOccurrence.increment(name, user_id)
......@@ -229,7 +229,8 @@ def export_feedback():
mrl = []
def append_piece(piece):
if piece.nl and piece.correct_lin and piece.correct_mrl:
if (piece.nl and piece.correct_lin and piece.correct_mrl
and 'replaced' not in piece.split):
nl.append(piece.nl)
lin.append(piece.correct_lin)
mrl.append(piece.correct_mrl)
......
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