diff --git a/pyteamsnap/client.py b/pyteamsnap/client.py index a1f2bb8..17ee3a9 100644 --- a/pyteamsnap/client.py +++ b/pyteamsnap/client.py @@ -36,8 +36,7 @@ class TeamSnap(APIClient): pass def link(self, link_name): - d = {link["rel"]: link["href"] for link in self._root_collection["links"]} - return d.get(link_name) + return self._root_collection.links.get(rel=link_name).href def bulk_load( self, team_id, types: T.List[T.Any], **kwargs # TODO fix typing