IsaacKerson commited on
Commit
6d40ebc
1 Parent(s): d461ae7

fix insertion error

Browse files
Files changed (1) hide show
  1. pages/quiz.py +1 -1
pages/quiz.py CHANGED
@@ -38,7 +38,7 @@ def app():
38
  insert_tup = (student_id, session_id, uct_iso, items[1], items[2], answer, correct_int, )
39
  c, conn = db_connect(DATABASE)
40
  c.execute("INSERT INTO responses VALUES (?, ?, ?, ?, ?, ?, ?)", insert_tup)
41
- conn.commit()
42
  conn.close()
43
  score_val = 100 * num_correct / len(questions)
44
  st.metric(label="Final Score", value=f"{score_val}%")
 
38
  insert_tup = (student_id, session_id, uct_iso, items[1], items[2], answer, correct_int, )
39
  c, conn = db_connect(DATABASE)
40
  c.execute("INSERT INTO responses VALUES (?, ?, ?, ?, ?, ?, ?)", insert_tup)
41
+ conn.commit()
42
  conn.close()
43
  score_val = 100 * num_correct / len(questions)
44
  st.metric(label="Final Score", value=f"{score_val}%")