diff options
author | Minteck <contact@minteck.org> | 2022-08-26 22:29:23 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-08-26 22:29:23 +0200 |
commit | 09bd0164ebc020a54b944b7326dcba496fb5d82c (patch) | |
tree | 0c5e765e627ecc94e534ccb6e2bc83917d58dc4c /app/fronters/dl.js | |
parent | a2df9a69dcc14cb70118cda2ded499055e7ee358 (diff) | |
download | pluralconnect-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-x | app/fronters/dl.js | 2 |
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"); |