Merge pull request #442 from LibreQoE/rchac-patch-11

Update integrationPowercode.py
This commit is contained in:
Robert Chacón 2023-12-16 17:14:52 -07:00 committed by GitHub
commit dd17fc2d92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,11 +57,15 @@ def createShaper():
customerIDs.append(customerIDint)
allServices = {}
counter = 1
for customerID in customerIDs:
print("Importing " + str(counter) + "/" + str(len(customerIDs)) + " customers")
allServices.update(getServiceInfo(customerID))
counter += 1
acceptableEquipment = ['Customer Owned Equipment', 'Router', 'Customer Owned Equipment', 'Managed Routers'] #'CPE'
print("Consolidating imported customers")
devicesByCustomerID = {}
for customer in customerInfo:
if customer['status'] == 'Active':