Update Test.vue
This commit is contained in:
@@ -374,17 +374,6 @@ function getGroupStats(role) {
|
||||
}
|
||||
}
|
||||
|
||||
function calculateLeaderboard() {
|
||||
if (!logsResource.data) return
|
||||
|
||||
const pointsMap = {}
|
||||
|
||||
// Считаем сумму очков для каждого пользователя
|
||||
logsResource.data.forEach(log => {
|
||||
if (!pointsMap[log.user]) pointsMap[log.user] = 0
|
||||
pointsMap[log.user] += log.points
|
||||
})
|
||||
|
||||
function calculateLeaderboard() {
|
||||
if (!logsResource.data) return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user