diff options
author | Joel Kronqvist <work.joelkronqvist@gmail.com> | 2022-10-24 16:43:53 +0300 |
---|---|---|
committer | Joel Kronqvist <work.joelkronqvist@gmail.com> | 2022-10-24 16:43:53 +0300 |
commit | 569fe38f54b21d9b7de5a8b48cbf14987383281d (patch) | |
tree | 711b62a7c91708ddcba30d8c41c37b1c729ad260 /dbparse.js | |
parent | a760ac4091d400b2ae1f461550eed5004b444844 (diff) | |
download | LYLLRuoka-569fe38f54b21d9b7de5a8b48cbf14987383281d.tar.gz LYLLRuoka-569fe38f54b21d9b7de5a8b48cbf14987383281d.zip |
Added removal of dumb header in shifts that crashed the parsing
Diffstat (limited to 'dbparse.js')
-rw-r--r-- | dbparse.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |