mirror of
https://github.com/edgegamers/poor-sharptimer.git
synced 2025-12-05 20:40:25 -08:00
fix: Update rank overhaul views with improved filtering
- Update join condition in `006_AddRankOverhaulViews.sql` to filter PlayerRecords by `Style = 0` - Modify `GROUP BY` clause to group by `PlayerRecords.SteamID` instead of `PlayerPoints.SteamID` - Add an empty line at the end of the file for formatting consistency
This commit is contained in:
@@ -107,6 +107,7 @@ FROM ((`PlayerRanks` `Ranks` JOIN `MapWRs` `MWR`
|
|||||||
|
|
||||||
CREATE VIEW IF NOT EXISTS cs2_surf.PlayerLeaderboard AS
|
CREATE VIEW IF NOT EXISTS cs2_surf.PlayerLeaderboard AS
|
||||||
SELECT `PP`.`SteamID` AS `SteamID`, `PR`.`PlayerName` AS `PlayerName`, SUM(`PP`.`Points`) AS `GlobalPoints`
|
SELECT `PP`.`SteamID` AS `SteamID`, `PR`.`PlayerName` AS `PlayerName`, SUM(`PP`.`Points`) AS `GlobalPoints`
|
||||||
FROM (`PlayerPoints` `PP` JOIN `PlayerRecords` `PR` ON (`PP`.`SteamID` = `PR`.`SteamID`))
|
FROM (`cs2_surf`.`PlayerPoints` `PP` JOIN `cs2_surf`.`PlayerRecords` `PR` ON (`PP`.`SteamID` = `PR`.`SteamID` AND `PR`.Style = 0))
|
||||||
GROUP BY `PP`.`SteamID`;
|
GROUP BY `PR`.`SteamID`;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user