aboutsummaryrefslogtreecommitdiff
path: root/update.js
diff options
context:
space:
mode:
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