Skip to content

Commit

Permalink
Merge pull request #234 from lsst-ts/tickets/DM-44622
Browse files Browse the repository at this point in the history
DM-44622: Fix night report plots not being updated
  • Loading branch information
ugyballoons authored Dec 11, 2024
2 parents e4b95ea + 6a15c28 commit db78c1f
Show file tree
Hide file tree
Showing 5 changed files with 264 additions and 264 deletions.
2 changes: 1 addition & 1 deletion python/lsst/ts/rubintv/background/currentpoller.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ async def sieve_out_night_reports(
loc_cam,
{"nightReportLink": "current"},
)
await self.process_night_report_objects(report_objs, location, camera)
await self.process_night_report_objects(report_objs, location, camera)
return objects

async def filter_night_report_objects(
Expand Down
4 changes: 3 additions & 1 deletion src/js/components/NightReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,14 @@ NightReportText.propTypes = {
}

function getTabNames(nightReport) {
let groups = ["Efficiency"]
let groups = []
if (
nightReport.text &&
Object.keys(nightReport.text).some((n) => !n.startsWith("text"))
) {
groups = groups.concat("QA Plots")
} else if (nightReport.text) {
groups = groups.concat("Efficiency")
}
const plots = nightReport.plots
if (plots) {
Expand Down
Loading

0 comments on commit db78c1f

Please sign in to comment.