From 3d4a14baa27502b3b73edffcd040251c33e848ef Mon Sep 17 00:00:00 2001 From: Rasmus Lindved Date: Fri, 26 Apr 2024 08:38:04 +0200 Subject: [PATCH] SOF-1912 Update the Part rank fraction factor to be 1000 --- src/tv2-common/evaluateCues.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tv2-common/evaluateCues.ts b/src/tv2-common/evaluateCues.ts index d0ee383d..4f13fdd5 100644 --- a/src/tv2-common/evaluateCues.ts +++ b/src/tv2-common/evaluateCues.ts @@ -37,6 +37,8 @@ import { GraphicIsPilot } from './inewsConversion' +const PART_RANK_FRACTION_FACTOR: number = 1000 + export interface Adlib { rank: number } @@ -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(