def mine_people(): """ All the people that are in the documents covered by this span. """ form = MineForm(request.args) sa = SourceAnalyser(doc_ids=form.document_ids()) sa.load_people_sources() return jsonify({'people': [p.json() for p in sa.people.itervalues()]})
def mine_people(): """ All the people that are in the documents covered by this span. """ form = MineForm(request.args) sa = SourceAnalyser(doc_ids=form.document_ids()) sa.load_people_sources() return jsonify({ 'people': [p.json() for p in sa.people.itervalues()] })