diff options
Diffstat (limited to 'dbparse.js')
-rw-r--r-- | dbparse.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |