stats table

This commit is contained in:
yohlo
2025-09-13 15:21:23 -05:00
parent 3be2284da9
commit 4bc25fb0bc
7 changed files with 328 additions and 5 deletions

View File

@@ -70,5 +70,12 @@ export function createPlayersService(pb: PocketBase) {
});
return result;
},
async getAllPlayerStats(): Promise<PlayerStats[]> {
const result = await pb.collection("player_stats").getFullList<PlayerStats>({
sort: "-win_percentage,-total_cups_made",
});
return result;
},
};
}