mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Update sub counts script
Show all non-zero priced subs.
This commit is contained in:
parent
a9de6eaa55
commit
eb9ac2eede
1 changed files with 3 additions and 3 deletions
|
@ -18,11 +18,11 @@ var earliestDate = new Date("2015-03-01T00:00:00.000Z");
|
|||
var subs = {};
|
||||
|
||||
getSubscriptions(null, function () {
|
||||
console.log('999 recurring sub counts:');
|
||||
console.log('Recurring sub counts:');
|
||||
for (var created in subs) {
|
||||
for (var amount in subs[created]) {
|
||||
if (amount === '999') {
|
||||
console.log(created, subs[created][amount]['recurring'])
|
||||
if (parseInt(amount) > 0) {
|
||||
console.log(created, amount, subs[created][amount]['recurring'])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue