aboutsummaryrefslogtreecommitdiff
path: root/dbparse.js
diff options
context:
space:
mode:
Diffstat (limited to 'dbparse.js')
-rw-r--r--dbparse.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/dbparse.js b/dbparse.js
index a65add0..7e8d8fd 100644
--- a/dbparse.js
+++ b/dbparse.js
@@ -71,6 +71,7 @@ async function writeShifts(data, DB)
DB.query_raw("DELETE FROM shiftnames")
]);
+ data = data.replace(/RUOKAILUVUOROT.*/, "");
const dbOperations = [];
const shiftRegex = /((?:MAANANTAI|TIISTAI|KESKIVIIKKO|TORSTAI|PERJANTAI)?.*)\s*(RUOKAILU.*)\s*(.*)/gmi;
const shifts = data.matchAll(shiftRegex);