Created
March 24, 2019 16:38
-
-
Save talfco/791891c47b76835e564d2315404ec69a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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