This commit is contained in:
ntr committed 2023-08-29 11:07:54 +10:00
1 parent d6445332be
commit 46ef47186e
1 file changed
+9
@@ -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<Lap> laps = _db.Laps