Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_node(self, id):
request = self.session.get(self.get_node_url(id))
return UbiquityNode(self, request.json())
def get_children(self, id):
request = self.session.get(
self.get_node_url(id, 'parent')
)
items = request.json()['item_list']
return [UbiquityNode(self, item) for item in items]