aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarsVomMars2021-02-08 18:31:09 +0100
committerLarsVomMars2021-02-08 18:31:15 +0100
commit75b04460c86df1a9b25340310f4a27c2417ec7db (patch)
tree4bc9e7072d246515ab7a87bf636e54f8b749faa5
parent01d5b1256b3b39a127aea370b6e15bf005c84a4c (diff)
Melvin is stupido
-rwxr-xr-xcli.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/cli.js b/cli.js
index 9ab3865..3b1bb5e 100755
--- a/cli.js
+++ b/cli.js
@@ -84,7 +84,7 @@ if ((idx = params.indexOf("-r")) > -1) {
};
db.dump().then((data) => {
- data.users.forEach((user) => {
+ data.users.forEach(async (user) => {
hay = data.profile.filter((e) => e.user_id === user.id);
const comments = user.comments;
const chars = user.chars;
@@ -134,6 +134,11 @@ if ((idx = params.indexOf("-r")) > -1) {
}
textex += "\\end{tabularx}\\renewcommand{\\arraystretch}{1}";
}
+
+ await fs.writeFile(
+ __dirname + "/zeitung/parts/students/" + user.class + "/" + user.username + ".tex",
+ textex,
+ );
});
});
console.log("Probably finished?");