def search(self, key): '''Gets the incident based on the datastore key''' key = ndb.Key(urlsafe=key) return CallOut.get_by_id(key.id())