Skip to content

Commit

Permalink
SOF-1912 Update the Part rank fraction factor to be 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
LindvedKrvang committed Apr 26, 2024
1 parent 54f7365 commit 3d4a14b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tv2-common/evaluateCues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ import {
GraphicIsPilot
} from './inewsConversion'

const PART_RANK_FRACTION_FACTOR: number = 1000

export interface Adlib {
rank: number
}
Expand Down Expand Up @@ -440,7 +442,7 @@ export async function EvaluateCuesBase(
}

function getRankForPartDefinition(rank: number, partDefinition: PartDefinition): number {
return partDefinition.segmentRank + rank / 100
return partDefinition.segmentRank + rank / PART_RANK_FRACTION_FACTOR
}

export function SkipCue(
Expand Down

0 comments on commit 3d4a14b

Please sign in to comment.