Skip to content

Instantly share code, notes, and snippets.

@talfco
Created March 24, 2019 16:38
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 talfco/791891c47b76835e564d2315404ec69a to your computer and use it in GitHub Desktop.
Save talfco/791891c47b76835e564d2315404ec69a to your computer and use it in GitHub Desktop.
def get_person_record(self, id):
recs = list(filter(lambda person: person['id'] == id, self._members))
if len(recs) != 1:
return None
else:
return recs[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment