aboutsummaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorJoelHMikael <joel.h.kronqvist@gmail.com>2021-12-30 12:48:42 +0200
committerJoelHMikael <joel.h.kronqvist@gmail.com>2021-12-30 12:48:42 +0200
commit4c4f007130ff20691b9ac2f5fbf05ed5be3c9931 (patch)
tree709a8c52eee059f334132b8ab8cdc063f4525161 /server.js
parentda0fc08fe5a7ee72914197ff4eebd42b397957f6 (diff)
downloadLYLLRuoka-4c4f007130ff20691b9ac2f5fbf05ed5be3c9931.tar.gz
LYLLRuoka-4c4f007130ff20691b9ac2f5fbf05ed5be3c9931.zip
Example input
Diffstat (limited to 'server.js')
-rw-r--r--server.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.js b/server.js
index 2f45e95..d3c8838 100644
--- a/server.js
+++ b/server.js
@@ -132,6 +132,9 @@ async function buildMain(args)
if (res["shift"] === -1)
res["shift"] = "Kurssilla/opettajalla/luokalla ei ole ruokailua päivällä tai kurssia ei ole olemassa!";
+ // get the example input
+ res["example-input"] = parse.randomIndex(DB, day - 1);
+
// get the day
let weekdays = ["su", "ma", "ti", "ke", "to", "pe", "la"];
res["day"] = weekdays[day];