aboutsummaryrefslogtreecommitdiff
path: root/dbparse.js
diff options
context:
space:
mode:
Diffstat (limited to 'dbparse.js')
-rw-r--r--dbparse.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbparse.js b/dbparse.js
index dde0ff5..29b9cb7 100644
--- a/dbparse.js
+++ b/dbparse.js
@@ -129,7 +129,7 @@ async function writeShift(weekday, shiftId, shiftLine, courseLine, DB)
className = null;
dbOperations.push(DB.execute(
- `INSERT INTO shifts VALUES (${weekday}, ${shiftId}, ?, ?, ?)`,
+ `INSERT IGNORE INTO shifts VALUES (${weekday}, ${shiftId}, ?, ?, ?)`,
[courseName, teacherName, className]
));
}
@@ -195,4 +195,4 @@ exports.build = writeShifts;
exports.get = getShift;
exports.randomIndex = getRandomIndex;
exports.find = findExpression;
-exports.getNextChar = getNextChar; \ No newline at end of file
+exports.getNextChar = getNextChar;