Skip to content

Commit

Permalink
Tidy night report for date endpoint context
Browse files Browse the repository at this point in the history
  • Loading branch information
ugyballoons committed Jul 5, 2024
1 parent 52f2aee commit f986a74
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/lsst/ts/rubintv/handlers/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ async def get_historical_night_report_page(
camera_name=camera_name,
date_str=date_str,
request=request,
# default return is empty night report
is_busy_default=NightReport(),
)

Expand All @@ -355,9 +356,7 @@ async def get_historical_night_report_page(
"location": location,
"camera": camera.model_dump(),
"date": day_obs,
"night_report": (
night_report.model_dump() if night_report is not None else {}
),
"night_report": (night_report.model_dump()),
"historical_busy": historical_busy,
"title": title,
},
Expand Down

0 comments on commit f986a74

Please sign in to comment.