fix
This commit is contained in:
parent
63e39f8b03
commit
9111e1bbe1
1 changed files with 2 additions and 2 deletions
|
@ -75,10 +75,10 @@ angular.module("AdLinApp")
|
||||||
if (login[0] == "$") return;
|
if (login[0] == "$") return;
|
||||||
tmpstats.total++;
|
tmpstats.total++;
|
||||||
angular.forEach(challenges, function(ch, chid) {
|
angular.forEach(challenges, function(ch, chid) {
|
||||||
if (ch.time) {
|
if (ch.time && challenges[chid] !== undefined) {
|
||||||
challenges[chid].time = new Date(ch.time);
|
challenges[chid].time = new Date(ch.time);
|
||||||
challenges[chid].recent = (Date.now() - ch.time)/1000;
|
challenges[chid].recent = (Date.now() - ch.time)/1000;
|
||||||
if (recent < challenges[chid].time)
|
if (recent < challenges[chid].time && tmpstats[chid] !== undefined)
|
||||||
tmpstats[chid].success++;
|
tmpstats[chid].success++;
|
||||||
}
|
}
|
||||||
if (tmpstats[chid] !== undefined)
|
if (tmpstats[chid] !== undefined)
|
||||||
|
|
Reference in a new issue