Skip to main content

system.kanoa.operators.getOLEOperatorLeaderboard(assetId, startDate, endDate, attributionMode)

Returns one row per operator who worked this asset in range, ranked by POLE. Operators with no shift assignment for the asset/range but who did log into it get a fallback bucket spanning the whole requested range


Parameters

assetId Integer: Id of asset
startDate DateTime: Start date
endDate DateTime: End date
attributionMode String: 'EvenSplit', 'FullCredit', or 'PrimaryOnly' - controls how counter output is split when the asset has a crew (multiple concurrent users). Default 'EvenSplit'.


Returns

leaderboardData pyDataset


Example

assetId = 4
startDate = system.date.parse("2025-11-01 00:00:00")
endDate = system.date.parse("2025-11-05 00:00:00")
attributionMode = 'EvenSplit'
data = system.kanoa.operators.getOLEOperatorLeaderboard(assetId, startDate, endDate, attributionMode)