buildLeaderboard() i src/timing_logic.js använde formatLap(...)

This commit is contained in:
larssand
2026-03-25 21:54:28 +01:00
parent 65d9cd5843
commit 3dfc991df0
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ const getCompetitorElapsedMs = (session, row) => getCompetitorElapsedMsLogic(ses
const getCompetitorPassings = (session, row, options = {}) => getCompetitorPassingsLogic(session, row, options, { ensureSessionResult, isCountedPassing }); const getCompetitorPassings = (session, row, options = {}) => getCompetitorPassingsLogic(session, row, options, { ensureSessionResult, isCountedPassing });
const getCompetitorSeedMetric = (session, row) => getCompetitorSeedMetricLogic(session, row, { getCompetitorPassings }); const getCompetitorSeedMetric = (session, row) => getCompetitorSeedMetricLogic(session, row, { getCompetitorPassings });
const getSessionEntrants = (session) => getSessionEntrantsLogic(session, { state, getEventDrivers }); const getSessionEntrants = (session) => getSessionEntrantsLogic(session, { state, getEventDrivers });
const buildLeaderboard = (session) => buildLeaderboardLogic(session, { ensureSessionResult, getSessionTargetMs, getCompetitorPassings, isCountedPassing, getCompetitorElapsedMs, getCompetitorSeedMetric, getSessionLapWindow, formatSeedMetric, formatRaceClock, formatLeaderboardGap, formatLapDelta, t }); const buildLeaderboard = (session) => buildLeaderboardLogic(session, { ensureSessionResult, getSessionTargetMs, getCompetitorPassings, isCountedPassing, getCompetitorElapsedMs, getCompetitorSeedMetric, getSessionLapWindow, formatSeedMetric, formatRaceClock, formatLeaderboardGap, formatLapDelta, formatLap, t });
const buildPracticeStandings = (event) => buildPracticeStandingsLogic(event, { getSessionsForEvent, buildLeaderboard, getCompetitorSeedMetric, formatSeedMetric, formatRaceClock }); const buildPracticeStandings = (event) => buildPracticeStandingsLogic(event, { getSessionsForEvent, buildLeaderboard, getCompetitorSeedMetric, formatSeedMetric, formatRaceClock });
const getQualifyingPointsValue = (place, fieldSize, tableType) => getQualifyingPointsValueLogic(place, fieldSize, tableType); const getQualifyingPointsValue = (place, fieldSize, tableType) => getQualifyingPointsValueLogic(place, fieldSize, tableType);
const isHighPointsTable = (tableType) => isHighPointsTableLogic(tableType); const isHighPointsTable = (tableType) => isHighPointsTableLogic(tableType);

View File

@@ -111,7 +111,7 @@ export function ensureSessionResult(sessionId, { state }) {
export function buildLeaderboard(session, { ensureSessionResult, getSessionTargetMs, getCompetitorPassings, isCountedPassing, getCompetitorElapsedMs, getCompetitorSeedMetric, getSessionLapWindow, formatSeedMetric, formatRaceClock, formatLeaderboardGap, formatLapDelta, t }) { export function buildLeaderboard(session, { ensureSessionResult, getSessionTargetMs, getCompetitorPassings, isCountedPassing, getCompetitorElapsedMs, getCompetitorSeedMetric, getSessionLapWindow, formatSeedMetric, formatRaceClock, formatLeaderboardGap, formatLapDelta, formatLap, t }) {
const result = ensureSessionResult(session.id); const result = ensureSessionResult(session.id);
const sessionType = String(session.type || "").toLowerCase(); const sessionType = String(session.type || "").toLowerCase();
const targetMs = getSessionTargetMs(session); const targetMs = getSessionTargetMs(session);