aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes.txt8
-rw-r--r--dbparse.js1
2 files changed, 1 insertions, 8 deletions
diff --git a/classes.txt b/classes.txt
deleted file mode 100644
index ce5663b..0000000
--- a/classes.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-ÄI7.1: A205
-FY5.2: B102
-MA8.4: B101
-EA5.2: B209
-FI2.6: B103
-EA5.6: B211
-BI4.2: A102
-HI2.4: B210
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);