United-Way-Achievement-Club / uw_database

A web application for the United Way Achievement Club for coordinators to track member progress and to reduce dependence on paper forms
0 stars 0 forks source link

Edit member #71

Closed daniel-baggerman closed 6 years ago

daniel-baggerman commented 6 years ago

I updated the code around demo_data['credit_score'] to not return an error when there is no input.

There is a problem with the creation of dictionaries when not all fields are entered in the forms. For example, if 'has_car' is not checked yes or no, then a key error will return because the 'has_car' key will not exist in the demo_data dictionary. I do not know why this is. Something similar seems to happen for enrollment_form['referreal_source']. Changing the getEnrollmentForm function seemed to fix it.

Please advise.