Update integrationUISP.py

This commit is contained in:
Robert Chacón 2023-04-13 09:03:30 -06:00 committed by GitHub
parent 8f55f4ac4e
commit ec2ed8e4ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,6 +250,7 @@ def findNodesBranchedOffPtMP(siteList, dataLinks, sites):
if ('parent' in site['identification']) and (site['identification']['parent'] is not None):
parent = site['identification']['parent']['id']
for link in dataLinks:
if (link['to']['site'] is not None) and (link['to']['site']['identification'] is not None):
if ('identification' in link['to']['site']) and (link['to']['site']['identification'] is not None):
if ('identification' in link['from']['site']) and (link['from']['site']['identification'] is not None):
if link['from']['site']['identification']['id'] == parent: