summaryrefslogtreecommitdiff
path: root/app/fronters/dl.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-08-26 22:29:23 +0200
committerMinteck <contact@minteck.org>2022-08-26 22:29:23 +0200
commit09bd0164ebc020a54b944b7326dcba496fb5d82c (patch)
tree0c5e765e627ecc94e534ccb6e2bc83917d58dc4c /app/fronters/dl.js
parenta2df9a69dcc14cb70118cda2ded499055e7ee358 (diff)
downloadpluralconnect-09bd0164ebc020a54b944b7326dcba496fb5d82c.tar.gz
pluralconnect-09bd0164ebc020a54b944b7326dcba496fb5d82c.tar.bz2
pluralconnect-09bd0164ebc020a54b944b7326dcba496fb5d82c.zip
idk when was the last commit so I'm making a new one - Violet Dawn
Diffstat (limited to 'app/fronters/dl.js')
-rwxr-xr-xapp/fronters/dl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/fronters/dl.js b/app/fronters/dl.js
index 61f7e31..7e04a0b 100755
--- a/app/fronters/dl.js
+++ b/app/fronters/dl.js
@@ -6,7 +6,7 @@ for (let system of ["gdapd", "ynmuc"]) {
let data = JSON.parse(fs.readFileSync("data.json").toString());
for (let member of data) {
- cp.execSync("convert " + member['avatar_url'] + " ./profiles/" + member['id'] + ".png");
+ if (member['avatar_url']) cp.execSync("convert " + member['avatar_url'] + " ./profiles/" + member['id'] + ".png");
}
fs.unlinkSync("data.json");