Skip to content

Commit

Permalink
Fix docstring for get_definition and get_document routes (#5428)
Browse files Browse the repository at this point in the history
  • Loading branch information
nimaxin authored Nov 4, 2024
1 parent 9cd2145 commit 0ac1a25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dispatch/definition/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_definitions(common: CommonParameters):

@router.get("/{definition_id}", response_model=DefinitionRead)
def get_definition(db_session: DbSession, definition_id: PrimaryKey):
"""Update a definition."""
"""Get a definition."""
definition = get(db_session=db_session, definition_id=definition_id)
if not definition:
raise HTTPException(
Expand Down
2 changes: 1 addition & 1 deletion src/dispatch/document/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_documents(common: CommonParameters):

@router.get("/{document_id}", response_model=DocumentRead)
def get_document(db_session: DbSession, document_id: PrimaryKey):
"""Update a document."""
"""Get a document."""
document = get(db_session=db_session, document_id=document_id)
if not document:
raise HTTPException(
Expand Down

0 comments on commit 0ac1a25

Please sign in to comment.