some previously played songs bugs

This commit is contained in:
Luna 2025-06-21 21:34:19 +02:00
parent 661a040044
commit c4d4f6813b
2 changed files with 4 additions and 4 deletions

View file

@ -147,7 +147,7 @@
</div>
{:else}
<div class="maps-list">
{#each maps as map (map.taData.guid)}
{#each maps as map}
<div class="map-card">
<div class="map-cover">
<img

View file

@ -495,7 +495,7 @@
// Add all current players for this song
playingPlayerIds.forEach(playerGuid => {
activeSongPlayers.add(`${playerGuid}-${levelId}`);
activeSongPlayers.add(`${playerGuid}-${levelId.toLowerCase()}`);
});
const response = await client.playSong(currentSong, playingPlayerIds);
@ -623,7 +623,7 @@
if (!levelId) return;
// Remove player from active song tracking
activeSongPlayers.delete(`${rts.player!.guid}-${levelId}`);
activeSongPlayers.delete(`${rts.player!.guid}-${levelId.toLowerCase()}`);
const map = upcomingQueueMaps.find(x =>
x.taData.gameplayParameters!.beatmap!.levelId.toUpperCase() === levelId.toUpperCase()
@ -639,7 +639,7 @@
// Check if any players are still playing this song
const playersStillPlaying = Array.from(activeSongPlayers)
.some(key => key.endsWith(`-${levelId}`));
.some(key => key.endsWith(`-${levelId.toLowerCase()}`));
const completionType = playersStillPlaying
? 'Still Awaiting Scores'