diff options
-rw-r--r-- | classes.txt | 8 | ||||
-rw-r--r-- | dbparse.js | 1 |
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 @@ -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); |