Skip to content

Commit

Permalink
Tidy up as per PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ugyballoons committed Jul 11, 2024
1 parent f986a74 commit f4b3753
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/lsst/ts/rubintv/background/historicaldata.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async def compress_events(self) -> None:
async def store_events(self, events: list[Event], locname: str) -> None:
logger.info("starting store_events")
for event in events:
storage_key = await self.storage_key_for_event(event, locname)
storage_key = self.storage_key_for_event(event, locname)
if storage_key not in self._temp_events:
self._temp_events[storage_key] = []
self._temp_events[storage_key].append(event)
Expand All @@ -185,7 +185,7 @@ async def store_events(self, events: list[Event], locname: str) -> None:
self._calendar[loc_cam][year][month][day] = seq_num
logger.info("ending store_events")

async def storage_key_for_event(self, event: Event, locname: str) -> str:
def storage_key_for_event(self, event: Event, locname: str) -> str:
return f"{locname}/{event.camera_name}"

async def download_and_store_metadata(
Expand Down
3 changes: 1 addition & 2 deletions python/lsst/ts/rubintv/handlers/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ async def get_home(
request: Request,
) -> Response:
"""GET ``/rubintv/`` (the app's external root)."""
# logger.info("Request for the app home page")
locations: list[Location] = request.app.state.models.locations
if len(locations) < 2:
location = locations[0]
Expand Down Expand Up @@ -356,7 +355,7 @@ async def get_historical_night_report_page(
"location": location,
"camera": camera.model_dump(),
"date": day_obs,
"night_report": (night_report.model_dump()),
"night_report": night_report.model_dump(),
"historical_busy": historical_busy,
"title": title,
},
Expand Down

0 comments on commit f4b3753

Please sign in to comment.