Guard use of reconCandidates
which existed only up to Refine 2.0
This commit is contained in:
parent
a9066491a7
commit
4405e4a9b1
|
@ -249,13 +249,15 @@ def RowsResponseFactory(column_index):
|
||||||
# # c for candidates. Indexes into self.recon_candidates
|
# # c for candidates. Indexes into self.recon_candidates
|
||||||
# "c": ["/domain/type/id", ...]
|
# "c": ["/domain/type/id", ...]
|
||||||
#}
|
#}
|
||||||
self.recon_candidates = self.pool['reconCandidates']
|
# Recon data structure changed after Refine 2.0
|
||||||
#"/domain/type/id": {
|
if 'reconCandidates' in self.pool:
|
||||||
# "id": "/domain/type/id",
|
self.recon_candidates = self.pool['reconCandidates']
|
||||||
# "name": "...",
|
#"/domain/type/id": {
|
||||||
# "score": 0.439394,
|
# "id": "/domain/type/id",
|
||||||
# "types": ["/domain/type"]
|
# "name": "...",
|
||||||
#}
|
# "score": 0.439394,
|
||||||
|
# "types": ["/domain/type"]
|
||||||
|
#}
|
||||||
self.rows = self.RefineRows(response['rows'])
|
self.rows = self.RefineRows(response['rows'])
|
||||||
|
|
||||||
return RowsResponse
|
return RowsResponse
|
||||||
|
|
Loading…
Reference in New Issue