Skip to content

Instantly share code, notes, and snippets.

@shaungehring
Created February 5, 2020 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaungehring/98750c7d3bed204457655e5c84315866 to your computer and use it in GitHub Desktop.
Save shaungehring/98750c7d3bed204457655e5c84315866 to your computer and use it in GitHub Desktop.
@self.user.resolve_references
def resolve_user_references(representations):
results = []
for req in representations:
kwargs = {
"id": req.get('id')
}
data = self.ds.getUser(**kwargs)[0]
results.append(User(**data))
return results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment