diff --git a/nise-backend/src/main/kotlin/com/nisemoe/nise/Models.kt b/nise-backend/src/main/kotlin/com/nisemoe/nise/Models.kt index c2bd258..019542c 100644 --- a/nise-backend/src/main/kotlin/com/nisemoe/nise/Models.kt +++ b/nise-backend/src/main/kotlin/com/nisemoe/nise/Models.kt @@ -35,7 +35,8 @@ data class Statistics( val total_users: Int, val total_scores: Int, val total_replay_scores: Int, - val total_replay_similarity: Int + val total_replay_similarity: Int, + val total_bans: Int, ) data class SuspiciousScoreEntry( diff --git a/nise-backend/src/main/kotlin/com/nisemoe/nise/database/StatisticsService.kt b/nise-backend/src/main/kotlin/com/nisemoe/nise/database/StatisticsService.kt index d958ea5..7998848 100644 --- a/nise-backend/src/main/kotlin/com/nisemoe/nise/database/StatisticsService.kt +++ b/nise-backend/src/main/kotlin/com/nisemoe/nise/database/StatisticsService.kt @@ -17,7 +17,8 @@ class StatisticsService(private val dslContext: DSLContext) { dslContext.fetchCount(USERS), dslContext.fetchCount(SCORES), dslContext.fetchCount(SCORES, SCORES.REPLAY.isNotNull), - dslContext.fetchCount(SCORES_SIMILARITY) + dslContext.fetchCount(SCORES_SIMILARITY), + dslContext.fetchCount(USERS, USERS.IS_BANNED.eq(true)) ) } diff --git a/nise-frontend/src/app/home/home.component.html b/nise-frontend/src/app/home/home.component.html index 04cd255..e8462cb 100644 --- a/nise-frontend/src/app/home/home.component.html +++ b/nise-frontend/src/app/home/home.component.html @@ -1,5 +1,8 @@