Skip to content

Commit

Permalink
chore(python): remove an empty line from generated code
Browse files Browse the repository at this point in the history
Correction for 4caebf2 commit.

Relate to #16
  • Loading branch information
php-coder committed Apr 6, 2024
1 parent 92ff16d commit 70c77a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion examples/python/fastapi/postgres/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def get_list_v1_categories(conn=Depends(db_connection)):


@router.post('/v1/categories', status_code = status.HTTP_204_NO_CONTENT)

def post_v1_categories(payload: CreateCategoryDto, conn=Depends(db_connection)):
try:
with conn:
Expand Down
2 changes: 1 addition & 1 deletion src/templates/routes.py.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def <%- pythonMethodName %>(<%- methodArgs.join(', ') %>):
%>
@router.post('<%- path %>', status_code = status.HTTP_204_NO_CONTENT)
<%# LATER: deal with methodArgs %>
<%# LATER: deal with methodArgs -%>
def <%- pythonMethodName %>(payload: <%- model %>, conn=Depends(db_connection)):
try:
with conn:
Expand Down

0 comments on commit 70c77a3

Please sign in to comment.