I am creating a questionnare web application with html and python using flask. Currently, the html form inputs are saved to a CSV file, and the questionnare results are calculated with python code, by reading the csv file.
When the users answers are being saved to the CSV, I want to assign a "user response id" that indicates the response of a SPECIFIC user, so that when the questionnare results are calculated, they're calculated for this particular user. I am not sure how to do this. How do I assign an ID value for a user, for all their answers?
Here is how the responses to the questionnare are saved:
ID,Response_ID,Question_ID,Ans
1,2,1,1985
2,2,2,6
3,2,3,3000
4,2,4,2
So these would be the responses from user "2". Thank you.