Skip to content

Commit

Permalink
new lookup type
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencarlislewalker committed Sep 11, 2024
1 parent 06fb08a commit 9ae0e76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ async def data_dictionary():
@app.get("/lookup_tables", responses={200: {"content": {"text/plain": {}}}}, response_class=StreamingResponse)
async def lookup_tables(lookup_type: str = Query("location"
, description='Type of lookup table.'
, enum=["location", "disease", "sex", "canmod-disease-lookup", "canmod-location-lookup"]
, enum=["location", "disease", "sex", "canmod-disease-lookup", "canmod-location-lookup", "phac-to-canmod-disease-lookup"]
)):
available_lookup_types = ["location", "disease", "sex", "canmod-disease-lookup", "canmod-location-lookup"]
available_lookup_types = ["location", "disease", "sex", "canmod-disease-lookup", "canmod-location-lookup", "phac-to-canmod-disease-lookup"]
if lookup_type not in available_lookup_types:
raise HTTPException(
status_code=400, detail=f"'{lookup_type}' is not a valid resource_type. Available values are {available_lookup_types}")
Expand Down

0 comments on commit 9ae0e76

Please sign in to comment.