bla
This commit is contained in:
parent
a7431e4250
commit
05750ec31a
1 changed files with 3 additions and 4 deletions
7
stats.js
7
stats.js
|
@ -11,11 +11,10 @@ for (var uid in PrankData) {
|
|||
if (PrankData[uid].state == "Done") {
|
||||
nbPrank ++;
|
||||
nbCrepe += parseInt(PrankData[uid].amount)
|
||||
if (userPrank[PrankData[uid].creator]) {
|
||||
userPrank[PrankData[uid].creator] += nbPrank;
|
||||
} else {
|
||||
userPrank[PrankData[uid].creator] = nbPrank;
|
||||
if (!userPrank[PrankData[uid].creator]) {
|
||||
userPrank[PrankData[uid].creator] = 0;
|
||||
}
|
||||
userPrank[PrankData[uid].creator] += parseInt(PrankData[uid].amount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue