Skip to content

Commit

Permalink
Ensure pqserver works inside of pqserver docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrondel committed Jan 14, 2025
1 parent c7c4870 commit edf7b06
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions python/lsst/consdb/handlers/internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from fastapi import APIRouter, Depends
from safir.metadata import get_metadata

from ..cdb_schema import AllowedFlexTypeEnum, ObsTypeEnum
from ..config import config
Expand Down Expand Up @@ -49,15 +48,14 @@ def internal_root(
data types.
"""

metadata = get_metadata(
package_name="consdb",
application_name=config.name,
)

assert instrument_list is not None
return IndexResponseModel.model_validate(
{
**metadata.model_dump(),
"name": config.name,
"version": "0.0.0", # TODO: insert an actual version number
"description": "A web interface to the Rubin Observatory Consolidated Database.",
"repository_url": "https://github.com/lsst-db/consdb",
"documentation_url": "https://consdb.lsst.io/index.html",
"instruments": instrument_list,
"obs_types": [o.value for o in ObsTypeEnum],
"dtypes": [d.value for d in AllowedFlexTypeEnum],
Expand Down

0 comments on commit edf7b06

Please sign in to comment.