On a slow connection, the student can click the submission button multiple times before getting a response. Subsequent requests cause duplicate key violation errors in the DB:
Dec 05 15:16:31 gorille my3ml[1170]: api/HasqlDB.hs:281:23 in my3ml-0.1.0.0-Ck5OEb7rh0SBAzFFWVdwcZ:HasqlDB)
Dec 05 15:16:31 gorille my3ml[1170]: runStatement (api/HasqlDB.hs:224:20 in my3ml-0.1.0.0-Ck5OEb7rh0SBAzFFWVdwcZ:HasqlDB)
Dec 05 15:16:31 gorille my3ml[1170]: createAnswer (api/Api/Server.hs:510:22 in my3ml-0.1.0.0-Ck5OEb7rh0SBAzFFWVdwcZ:Api.Server)
Dec 05 15:16:31 gorille my3ml[1170]: [Error] DBException: SessionError (QueryError "INSERT INTO story_answer (story_id, student_id, school_id, connect, question, summarise, clarify)
On a slow connection, the student can click the submission button multiple times before getting a response. Subsequent requests cause duplicate key violation errors in the DB: