Commit 66d14086 by Tim Babych

item.highlighted

parent 5485f0e3
......@@ -76,7 +76,7 @@ class AnnotationSearchView(APIView):
note_dict = item.get_stored_fields()
note_dict['ranges'] = json.loads(item.ranges)
note_dict['id'] = str(item.pk)
if params.get('highlight'):
if item.highlighted:
note_dict['text'] = item.highlighted[0]
results.append(note_dict)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment