Skip to content

Commit

Permalink
NEW FEATURE: group IDs extraction from the template
Browse files Browse the repository at this point in the history
  • Loading branch information
pawel-kow committed Apr 19, 2023
1 parent a62474b commit 6afffec
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions domainconnectzone/DomainConnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,16 @@ def get_variable_names(template, variables=None):
params[label] = variables[label]
return params

@staticmethod
def get_group_ids(template):
groups = []
if 'records' in template:
for record in template['records']:
if 'groupId' in record and not record['groupId'] in groups:
groups += [record['groupId']]
return groups


class DomainConnect(object):
"""
Two main entry points.
Expand Down

0 comments on commit 6afffec

Please sign in to comment.