Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
toddburnside committed Feb 13, 2025
1 parent e40c9e7 commit 0674965
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ object TimeAccountingTable:
private type DataMap = Map[Option[ScienceBand], Either[TimeSpan, BigDecimal]]

extension (e: Either[TimeSpan, BigDecimal])
def toCell: VdomNode = e match
private def toCell: VdomNode = e match
case Left(ts) => TimeSpanView(ts, TimeSpanFormatter.DecimalHours)
case Right(bd) => f"${bd * 100}%.1f%%"

extension (l: List[BandedProgramTime])
def toTimeSpanMap: TimeSpanMap =
private def toTimeSpanMap: TimeSpanMap =
l.map(bpt => bpt.band -> bpt.time.value).toMap

private val DataColumnKeys: List[Option[ScienceBand]] =
Expand Down

0 comments on commit 0674965

Please sign in to comment.