diff --git a/python/lsst/ts/rubintv/handlers/pages.py b/python/lsst/ts/rubintv/handlers/pages.py index 938831c0..d576caa4 100644 --- a/python/lsst/ts/rubintv/handlers/pages.py +++ b/python/lsst/ts/rubintv/handlers/pages.py @@ -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(), ) @@ -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, },