fix #398
What was happening is the all the answer questions was going into the if statement to see it is correct or incorrect. The incorrect have a return function in that stops all other question and data to go in. Causing it to shorten the list and give the students incorrect data. Now with the return function in the right place. all the form data are now validated and added in the students quiz data. I also added in another elif statement to stop the student from going back and hit submit again since it cause an another issues where the student quiz data don't get reset. it just adding in more data. I was thinking adding in a function to reset/average the student quiz data for a retake.
fix #398 What was happening is the all the answer questions was going into the if statement to see it is correct or incorrect. The incorrect have a return function in that stops all other question and data to go in. Causing it to shorten the list and give the students incorrect data. Now with the return function in the right place. all the form data are now validated and added in the students quiz data. I also added in another elif statement to stop the student from going back and hit submit again since it cause an another issues where the student quiz data don't get reset. it just adding in more data. I was thinking adding in a function to reset/average the student quiz data for a retake.