The list_people function was changed to return the street_address of each person, in addition to the first name, last name, and unique id. Another small function, new_volunteer, was added.
The arguments for the new_client function were becoming difficult to manage. In addition, after writing a good portion of the update_client function, it became clear that there needed to be more "connectedness" between the bits of information that belonged to a single client. Instead of receiving individual lists of first names, last names, etc., the function now takes a list of tuples, where each tuple contains a first name, a last name, etc. This will be necessary for the update_client function, where multiple clients may be updated at once, and we need to associate the new data with the right id. In an effort to conserve as much consistency across the functions as possible, this was applied to the new_client function as well.
No comments:
Post a Comment