Skip to content

Commit

Permalink
Add devtool to recalculate all leaderboards
Browse files Browse the repository at this point in the history
  • Loading branch information
timoschwarzer committed Jun 30, 2024
1 parent f264731 commit 9fc8a89
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pages/dev/league.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@
Force Continue
</v-btn>
</div>
<div class="mb-6">
<h2>Recalculate all Leaderboards</h2>

<v-btn color="accent" @click="recalculateLeaderboards">
Recalculate
</v-btn>
</div>
</v-container>
</template>

Expand Down Expand Up @@ -87,6 +94,15 @@
console.error(e)
}
},
async recalculateLeaderboards() {
try {
await this.$axios.$post(`/dev/league/season/recalculate-points`)
alert("Successfully recalculated all leaderboards")
} catch (e) {
alert(e)
console.error(e)
}
},
}
}
</script>
Expand Down

0 comments on commit 9fc8a89

Please sign in to comment.