Fix bug that add duplicate phrase field to def-block when query word like 'charge'(Cambridge).
This commit is contained in:
parent
bb9e2360e8
commit
5533c5d783
@ -82,11 +82,11 @@ class Cambridge(WebService):
|
|||||||
|
|
||||||
if sense_body:
|
if sense_body:
|
||||||
l = result['def_list']
|
l = result['def_list']
|
||||||
phrase = None
|
|
||||||
for block in sense_body:
|
for block in sense_body:
|
||||||
if isinstance(block, Tag) is not True:
|
if isinstance(block, Tag) is not True:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
phrase = None
|
||||||
block_type = block['class'][0]
|
block_type = block['class'][0]
|
||||||
if block_type == 'def-block':
|
if block_type == 'def-block':
|
||||||
pass
|
pass
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user