added extra checks (#166)
This commit is contained in:
@@ -259,12 +259,14 @@ def get_topology_data(queryset, hide_unconnected, save_coords, show_circuit, sho
|
||||
if link.cable.id not in cable_ids:
|
||||
cable_ids[link.cable.id] = {}
|
||||
else:
|
||||
if 'B' in cable_ids[link.cable.id]:
|
||||
if cable_ids[link.cable.id]['B'] is not None:
|
||||
complete_link = True
|
||||
elif link.cable_end == "B":
|
||||
if link.cable.id not in cable_ids:
|
||||
cable_ids[link.cable.id] = {}
|
||||
else:
|
||||
if 'A' in cable_ids[link.cable.id]:
|
||||
if cable_ids[link.cable.id]['A'] is not None:
|
||||
complete_link = True
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user