aboutsummaryrefslogtreecommitdiff
path: root/dbparse.js
AgeCommit message (Collapse)Author
2022-10-25Fixed bugs from last commitJoel Kronqvist
2022-10-25Fixed shift parsing when no teacher is supplied. Made server be run in a ↵Joel Kronqvist
loop in init.sh to bring it up again if it crashes.
2022-10-24Added removal of dumb header in shifts that crashed the parsingJoel Kronqvist
2022-10-20Made vegetarian food empty when not found. Had become visible in commit 'Bug ↵Joel Kronqvist
fixes & started setup.sh'
2022-10-18Enhanced robustness in retrieving the example input and in the init (at ↵Joel Kronqvist
reboot) script. The server errored out if the database was empty and there came a request, as it didn't check for empty arrays in dbparse.js in the function getRandomIndex. Fixed by adding handling & recursion limit. Added in init.sh a check to see if logging in to MySQL is possible to prevent errors at startup.
2022-10-15Bug fixes & started setup.shJoel Kronqvist
2022-03-11Food scraping updationJoel Kronqvist
2022-03-09Shift updation rewriteJoel Kronqvist
The shift updation algorithm was a pain to debug, so I changed it to use regex. I hope it helps.
2022-01-16Actual class parsingJoelHMikael
Really messy, feel free to improve, or even rewrite.
2022-01-13Made the parsing more inclusiveJoelHMikael
2022-01-09Database implementedJoelHMikael
Some polishing wouldn't do bad though...
2022-01-08Parsing the shifts (not classes) to the database + some GUI improvementsJoelHMikael