perceval/backends/core/groupsio.py
def __find_group_id(self):
        """Find the id of a group given its name by iterating on the list of subscriptions"""

        group_subscriptions = self.subscriptions(self.auth)

        for subscriptions in group_subscriptions:
            for sub in subscriptions:
                if sub['group_name'] == self.group_name:
                    return sub['group_id']

        msg = "Group id not found for group name %s" % self.group_name
        raise BackendError(cause=msg)
def __find_group_id(self):
        group_subscriptions = self.subscriptions(self.auth)

        for subscriptions in group_subscriptions:
            for sub in subscriptions:
                if sub['group_name'] == self.group_name:
                    return sub['group_id']

        msg = "Group id not found for group name %s" % self.group_name
        raise BackendError(cause=msg)
def __find_group_id ( self ) : group_subscriptions = self . subscriptions ( self . auth ) for subscriptions in group_subscriptions : for sub in subscriptions : if sub [ 'group_name' ] == self . group_name : return sub [ 'group_id' ] msg = "Group id not found for group name %s" % self . group_name raise BackendError ( cause = msg )
Find the id of a group given its name by iterating on the list of subscriptions
Find the id of a group given its name by iterating on the list of subscriptions