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

Don’t count derived feedback in annotation progress

parent 167dab43
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,8 @@ def get_progress(achieved, expected):
def annotation_progress():
filters = {'user_id': current_user.id}
response = mt_server.post('list_feedback', json=filters)
lins = [piece['correct_lin'] for piece in response.json()]
lins = [piece['correct_lin'] for piece in response.json()
if not piece.get('parent_id')]
total_feedback = len(lins)
mrls = [mrl for mrl
in (functionalise(lin) for lin in lins if lin)
......
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