Browse Source

Update 'xppl/getannot.py'

master
anglk 6 years ago
parent
commit
b944572399
  1. 4
      xppl/getannot.py

4
xppl/getannot.py

@ -71,7 +71,7 @@ def get_annot_book(annot, name):
data = {
'text': item['text'],
'extract': item['target'][0]['selector'][2]['exact'],
'title': 'try me', 'url': item['uri']
'title': item['uri'], 'url': item['uri']
}
res.append(data)
else:
@ -80,7 +80,7 @@ def get_annot_book(annot, name):
data = {
'text': item['text'],
'extract': item['target'][0]['selector'][1]['exact'],
'title': 'try me', 'url': item['uri']
'title': item['uri'], 'url': item['uri']
}
res.append(data)
return res

Loading…
Cancel
Save