aboutsummaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/server.js b/server.js
index fcfa1ea..c180b71 100644
--- a/server.js
+++ b/server.js
@@ -252,6 +252,8 @@ async function buildMain(args)
// get the example input
res["example-input"] = await DBPARSE.randomIndex(day, SQLDB);
+ if (res["example-input"] === null)
+ res["example-input"] = "";
// get the day
let weekdays = ["ma", "ti", "ke", "to", "pe", "la", "su"];