Skip to content

Commit

Permalink
HDX-10213 Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
IanHopkinson committed Oct 9, 2024
1 parent 27f490b commit b29adfe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ coverage.xml

*.pg_restore

src/*
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"program": "main.py",
"console": "integratedTerminal",
"justMyCode": true,
"env":{"HAPI_USE_VAT": "true"}
"env":{"HAPI_USE_VAT": "false"}
}
],

Expand Down
8 changes: 7 additions & 1 deletion hdx_hapi/endpoints/get_affected_people.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,13 @@ async def get_humanitarian_needs(
# ref_period_parameters: Annotated[ReferencePeriodParameters, Depends(reference_period_parameters)],
common_parameters: Annotated[CommonEndpointParams, Depends(common_endpoint_parameters)],
db: AsyncSession = Depends(get_db),
category: Annotated[Optional[str], Query(max_length=128, description='')] = None,
category: Annotated[
Optional[str],
Query(
max_length=128,
description='A category combining gender, age range, disability marker and population group information',
),
] = None,
sector_code: Annotated[Optional[str], Query(max_length=32, description=f'{DOC_SECTOR_CODE}')] = None,
population_status: Annotated[
Optional[PopulationStatus], Query(max_length=32, description=f'{DOC_POPULATION_STATUS}')
Expand Down

0 comments on commit b29adfe

Please sign in to comment.