def getPersonByID(self, aid): dao = PersonDAO() persons = [] items = dao.getPersonByID(aid) for i in items: result = self.build_Person_dict(i) persons.append(result) return jsonify(Person=persons)
def getPersonById(self, perid): dao = PersonDAO() person = dao.getPersonByID(perid) return jsonify(person), 200