csmith1188 / formbar

Interactive Classroom Mangement Tool using Raspberry Pi, Python, and NeoPixels
5 stars 55 forks source link

All data now being added in. #416

Closed Jlara2005 closed 1 year ago

Jlara2005 commented 1 year ago

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.