From 23b21b35710aa5ea4eddaa5542360683ee01e786 Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 18 Apr 2021 12:53:40 +0100 Subject: [PATCH] . --- js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 41fb751..7e76eea 100644 --- a/js/main.js +++ b/js/main.js @@ -592,9 +592,9 @@ function setUpPacket(data, path) { // For loop to generate requests (async () => { - for (const n in data["question_requests"]) { + for (let n in data["question_requests"]) { question_number++; - //n = parseInt(n); + n = parseInt(n); let obj = { qid: n, type: question_type }; let question_in_db = await question_db.question_data.get(obj);