This commit is contained in:
nemunaire 2020-03-27 13:10:05 +01:00
parent 63e39f8b03
commit 9111e1bbe1

View File

@ -75,10 +75,10 @@ angular.module("AdLinApp")
if (login[0] == "$") return;
tmpstats.total++;
angular.forEach(challenges, function(ch, chid) {
if (ch.time) {
if (ch.time && challenges[chid] !== undefined) {
challenges[chid].time = new Date(ch.time);
challenges[chid].recent = (Date.now() - ch.time)/1000;
if (recent < challenges[chid].time)
if (recent < challenges[chid].time && tmpstats[chid] !== undefined)
tmpstats[chid].success++;
}
if (tmpstats[chid] !== undefined)