aboutsummaryrefslogtreecommitdiff
path: root/cli.js
diff options
context:
space:
mode:
authorMarvin Borner2021-03-05 20:32:28 +0100
committerMarvin Borner2021-03-05 20:32:28 +0100
commit550af931488494a2a0477dca0ad8b6644143fce2 (patch)
treed8efac7707b99a1bbc88effb0a27b23609594b3a /cli.js
parent0780898e8a99266112b077c9a88edafc99cdd9fe (diff)
OKAY!
Diffstat (limited to 'cli.js')
-rwxr-xr-xcli.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli.js b/cli.js
index 53cced6..e1360b8 100755
--- a/cli.js
+++ b/cli.js
@@ -100,7 +100,7 @@ if ((idx = params.indexOf("-r")) > -1) {
const chars = user.chars;
hay = curr;
const obj = {
- id: user.id, // Why tf tho
+ id: user.id,
name: `${user.name} ${user.middlename || ""} ${user.surname}`,
birthday: answer("Geburtsdatum"),
favsub: answer("Lieblingsfach"),
@@ -115,7 +115,7 @@ if ((idx = params.indexOf("-r")) > -1) {
obj.birthday = new Date(obj.birthday == "nichts" ? "1.1.2000" : obj.birthday).toLocaleDateString("de");
- // QR-Code.. DON'T ASK
+ // QR-Code.. DON'T ASK TODO: Fix for last student?
hay = next;
obj.qrcode = answer("QR-Code Text (z.B. Social Media Links, random Text, whatever)").replace(/ /g, "\\ ");
if (obj.qrcode === "nichts") obj.qrcode = "";