Actions
Bug #1452
closedAPI: "type" is empty if more entities are requested
Start date:
2021-01-24
Estimated time:
Found in version:
Description
If a single entity is requested (/api/0.2/entity/119820), the key "types" will be filled.
If more entities are requested through /api/0.2/code/place or /api/0.2/class/E18, the "type" field is null.
def get_node(entity: Entity) -> Optional[List[Dict[str, Any]]]:
nodes = []
# if bug occurs, entity.nodes is empty!!!
for node in entity.nodes:
nodes_dict = {'identifier': url_for('entity', id_=node.id, _external=True),
'label': node.name}
for link in Link.get_links(entity.id):
...
As for now, I have no clue why this is happening.
Actions