The save_input_data() function is supposed to save enough datatype info for the data reporting feature in InterviewStats to work properly. In particular, we need to tell which fields are multi-valued vars and which ones are text/area vars.
isinstance() is used in the save function to detect datatypes and it detects multi-valued vars correctly. However it doesn't distinguish text fields from non-text fields, this caused incomplete data reporting: single-valued vars are missing.
We need to fix it before people start to use this function, otherwise the saved data would result in incomplete data reporting.
The
save_input_data
() function is supposed to save enoughdatatype
info for the data reporting feature inInterviewStats
to work properly. In particular, we need to tell which fields aremulti-valued vars
and which ones aretext/area vars
.isinstance()
is used in the save function to detect datatypes and it detectsmulti-valued vars
correctly. However it doesn't distinguishtext
fields from non-text fields, this caused incomplete data reporting: single-valued vars are missing.We need to fix it before people start to use this function, otherwise the saved data would result in incomplete data reporting.