aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbparse.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbparse.js b/dbparse.js
index 0f029b4..a3065c3 100644
--- a/dbparse.js
+++ b/dbparse.js
@@ -145,7 +145,7 @@ async function writeShift(weekday, shiftId, shiftLine, courseLine, DB)
`INSERT IGNORE INTO shifts VALUES (${weekday}, ${shiftId}, ?, ?, ?)`,
[courseName1, teacher, className1]
));
- if (courseName2 !== null) {
+ if (courseName2 !== undefined) {
dbOperations.push(DB.execute(
`INSERT IGNORE INTO shifts VALUES (${weekday}, ${shiftId}, ?, ?, ?)`,
[courseName2, teacher, className2]