Skip to content

Commit

Permalink
Add debug statements to statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
nlinnanen committed May 7, 2024
1 parent d432d61 commit 99df0c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/analytics/statistics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ export async function calculateGuildStatistics(

const statistics = new Map<Guild, TeamStatistics>();

console.log("Milstone Achievers: ", milestoneAchieversByGuild);

for (const aggregate of aggregates) {
const periodStat = periodStats.find(
(stat) => stat.guild === aggregate.guild,
Expand All @@ -100,6 +102,7 @@ export async function calculateGuildStatistics(
(stat) => stat.guild === aggregate.guild,
)?.milestoneAchievers;


statistics.set(aggregate.guild, {
totalPoints: aggregate.totalPoints,
totalKilometers: aggregate.totalKilometers,
Expand Down

0 comments on commit 99df0c1

Please sign in to comment.