aboutsummaryrefslogtreecommitdiff
path: root/update.js
diff options
context:
space:
mode:
authorJoelHMikael <joel.h.kronqvist@gmail.com>2022-02-13 11:53:15 +0200
committerJoelHMikael <joel.h.kronqvist@gmail.com>2022-02-13 11:53:15 +0200
commit082f9f1b428e13c7a60d588f7d215beff937ffcf (patch)
tree3647e5448b5be22424e04fad6360b04527738d61 /update.js
parentb0841da93712d2bd7d8c47930cb8bed41ce417db (diff)
downloadLYLLRuoka-082f9f1b428e13c7a60d588f7d215beff937ffcf.tar.gz
LYLLRuoka-082f9f1b428e13c7a60d588f7d215beff937ffcf.zip
Finished README.md instructions
Diffstat (limited to 'update.js')
-rw-r--r--update.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/update.js b/update.js
index 9262ff7..a63ee3e 100644
--- a/update.js
+++ b/update.js
@@ -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