diff options
author | LarsVomMars | 2021-02-08 18:31:09 +0100 |
---|---|---|
committer | LarsVomMars | 2021-02-08 18:31:15 +0100 |
commit | 75b04460c86df1a9b25340310f4a27c2417ec7db (patch) | |
tree | 4bc9e7072d246515ab7a87bf636e54f8b749faa5 | |
parent | 01d5b1256b3b39a127aea370b6e15bf005c84a4c (diff) |
Melvin is stupido
-rwxr-xr-x | cli.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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?"); |