mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-25 14:04:54 -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 = {};
|
var subs = {};
|
||||||
|
|
||||||
getSubscriptions(null, function () {
|
getSubscriptions(null, function () {
|
||||||
console.log('999 recurring sub counts:');
|
console.log('Recurring sub counts:');
|
||||||
for (var created in subs) {
|
for (var created in subs) {
|
||||||
for (var amount in subs[created]) {
|
for (var amount in subs[created]) {
|
||||||
if (amount === '999') {
|
if (parseInt(amount) > 0) {
|
||||||
console.log(created, subs[created][amount]['recurring'])
|
console.log(created, amount, subs[created][amount]['recurring'])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue