Skip to content

Commit

Permalink
Fix comparison in get_night_metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Nov 11, 2024
1 parent 135ffb8 commit 88823be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lvmapi/tools/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,6 @@ def get_night_metrics(sjd: int | None = None) -> NightMetricsDict:
"time_lost": round(night_length - total_exp_time, 2),
"efficiency_no_readout": round(eff_no_readout * 100, 2),
"efficiency_readout": round(eff_readout * 100, 2),
"night_started": now >= twilight_end.unix,
"night_ended": now >= twilight_start.unix,
"night_started": now.unix >= twilight_end.unix,
"night_ended": now.unix >= twilight_start.unix,
}

0 comments on commit 88823be

Please sign in to comment.