diff --git a/Server/Controllers/CompletionController.cs b/Server/Controllers/CompletionController.cs index eb25a85..0d1a50d 100644 --- a/Server/Controllers/CompletionController.cs +++ b/Server/Controllers/CompletionController.cs @@ -25,6 +25,15 @@ public class LapController : ControllerBase { }); } +// with ranked as ( +// select *, rank() over (order by "Time" asc) as "Position", count("Id") over () +// from "Laps" +// where "Map" = 'surf_kitsune2_go' +// ) + +// select * from ranked +// where "UserId" = '116bf9a6-b618-48ef-ac78-d294abb500b2'; + // [HttpGet()] // public LapStorageDTO UserLaps(Guid userId, string mapName) { // List laps = _db.Laps