buildLeaderboard() i src/timing_logic.js använde formatLap(...)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user