judge: skip subtask if already unaccepted (#34)

This commit is contained in:
undefined committed 2020-11-29 18:21:16 +08:00
1 parent 1817341eee
commit 9f0668d938
6 files changed
+26 -7

No files matched your search

+2 -2
View File
@@ -30,8 +30,8 @@
"serialize-javascript": "^5.0.1",
"sockjs": "^0.3.20",
"superagent": "^6.1.0",
"supports-color": "^7.2.0",
"systeminformation": "^4.30.1",
"supports-color": "^8.0.0",
"systeminformation": "^4.30.6",
"wtfnode": "^0.8.4",
"yargs": "^16.1.1"
},
+3
View File
@@ -48,6 +48,9 @@ String.prototype.translate = function translate(...languages: string[]) {
if (locales[language]) {
if (locales[language][this] !== undefined) return locales[language][this];
}
if (locales[language.split('_')[0]]) {
if (locales[language.split('_')[0]][this] !== undefined) return locales[language.split('_')[0]][this];
}
}
return this;
};
+1
View File
@@ -44,6 +44,7 @@ export async function feedback() {
addons: global.addons,
memory: inf.memory,
osinfo: inf.osinfo,
cpu: inf.cpu,
flags: inf.flags,
}));
axios.post('https://feedback.undefined.moe/', { payload });