This commit is contained in:
Ross
2021-04-18 11:18:56 +01:00
parent 0de308421f
commit 0409f6fc43
+1 -2
View File
@@ -234,6 +234,7 @@ async function loadExamList(data) {
// If the timestamps differ delete and force a refresh // If the timestamps differ delete and force a refresh
const exam_timestamp = exam_generated_map[saved_exam.eid][0]; const exam_timestamp = exam_generated_map[saved_exam.eid][0];
const question_timestamp_hash = exam_generated_map[saved_exam.eid][1]; const question_timestamp_hash = exam_generated_map[saved_exam.eid][1];
console.log("comp timestamps", exam_timestamp, question_timestamp_hash)
if (Date.parse(saved_exam.generated) != Date.parse(exam_timestamp)) { if (Date.parse(saved_exam.generated) != Date.parse(exam_timestamp)) {
question_db.saved_exams.where("eid").equals(saved_exam.eid).delete(); question_db.saved_exams.where("eid").equals(saved_exam.eid).delete();
@@ -458,8 +459,6 @@ function loadPacketFromAjax(path, eid, generated) {
browser_cache = false; browser_cache = false;
} }
console.log("use cache", browser_cache);
$.ajax({ $.ajax({
dataType: "json", dataType: "json",
url: path, url: path,