Skip to content

Commit

Permalink
fix the rise_set calculation to use site details for the correct clas…
Browse files Browse the repository at this point in the history
…s of telescope based on instrument type
  • Loading branch information
Jon committed May 5, 2020
1 parent 454af3c commit 0052b81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion observation_portal/common/rise_set_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def get_rise_set_intervals_by_site(request: dict) -> dict:
Returns:
rise_set intervals by site
"""
site_details = configdb.get_sites_with_instrument_type_and_location()
site_details = configdb.get_sites_with_instrument_type_and_location(
instrument_type=request['configurations'][0]['instrument_type']
)
intervals_by_site = {}
for site in site_details:
intervals_by_site[site] = None
Expand Down

0 comments on commit 0052b81

Please sign in to comment.