diff options
author | JoelHMikael <joel.h.kronqvist@gmail.com> | 2022-02-13 11:53:15 +0200 |
---|---|---|
committer | JoelHMikael <joel.h.kronqvist@gmail.com> | 2022-02-13 11:53:15 +0200 |
commit | 082f9f1b428e13c7a60d588f7d215beff937ffcf (patch) | |
tree | 3647e5448b5be22424e04fad6360b04527738d61 /update.js | |
parent | b0841da93712d2bd7d8c47930cb8bed41ce417db (diff) | |
download | LYLLRuoka-082f9f1b428e13c7a60d588f7d215beff937ffcf.tar.gz LYLLRuoka-082f9f1b428e13c7a60d588f7d215beff937ffcf.zip |
Finished README.md instructions
Diffstat (limited to 'update.js')
-rw-r--r-- | update.js | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,5 +1,5 @@ const database = require("./database.js"); -const openFile = require("./open.js").file; +const openFile = require("./Functions/open.js").file; const parseClasses = require("./parseClasses.js").classes; const parse = require("./dbparse.js"); @@ -18,4 +18,8 @@ async function buildDB(shiftfile = "./shifts.txt", classfile = "./classes.txt", exports.update = buildDB; // Example call: -// await updateDB.update("./shifts.txt", ["./Kurssitarjottimet/2016Classes.txt", "./Kurssitarjottimet/NewClasses.txt"], dbcredentials);
\ No newline at end of file +/* +const openFile = require("./Functions/open.js").file; +const dbcredentials = openFile("../dblogin.txt"); +await updateDB.update("./shifts.txt", ["./Kurssitarjottimet/2016Classes.txt", "./Kurssitarjottimet/NewClasses.txt"], dbcredentials); +*/
\ No newline at end of file |