Skip to content

Commit

Permalink
Merge pull request #267 from prefeitura-rio/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
TanookiVerde authored Jan 8, 2025
2 parents 54dc84c + 311ec4a commit d0ba2fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

# Install virtualenv and create a virtual environment
RUN pip install --no-cache-dir -U poetry && \
RUN pip install --no-cache-dir -U "poetry<1.8.0" && \
poetry config virtualenvs.create false

# Copy the poetry.lock and pyproject.toml files
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ INFISICAL_TOKEN=<Token do projeto>

## Testes Automatizados
- Os testes estão definidos na pasta `api/tests/`
- Para rodar os testes basta executar no terminal `pytest --disable-warnings`
- Para rodar os testes basta executar no terminal `pytest --disable-warnings`.
6 changes: 1 addition & 5 deletions app/routers/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,12 @@ async def accept_use_terms(
)


@router_request(
method="GET",
router=router,
path="/patient/search",
@router.get("/patient/search",
response_model=List[dict],
responses={
404: {"model": AccessErrorModel},
403: {"model": AccessErrorModel}
},
dependencies=[Depends(RateLimiter(times=REQUEST_LIMIT_MAX, seconds=REQUEST_LIMIT_WINDOW_SIZE))]
)
async def search_patient(
request: Request,
Expand Down

0 comments on commit d0ba2fc

Please sign in to comment.