Skip to content

Commit

Permalink
change include_spam qry param default to true
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaskoepf committed Feb 16, 2023
1 parent 92a5210 commit 6c2d563
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/oasst_backend/api/v1/frontend_messages.py
Expand Up @@ -40,7 +40,7 @@ def get_conv_by_frontend_id(
@router.get("/{message_id}/tree", response_model=protocol.MessageTree)
def get_tree_by_frontend_id(
message_id: str,
include_spam: Optional[bool] = False,
include_spam: Optional[bool] = True,
include_deleted: Optional[bool] = False,
api_client: ApiClient = Depends(deps.get_api_client),
db: Session = Depends(deps.get_db),
Expand Down
2 changes: 1 addition & 1 deletion backend/oasst_backend/api/v1/messages.py
Expand Up @@ -178,7 +178,7 @@ def get_conv(
def get_tree(
*,
message_id: UUID,
include_spam: Optional[bool] = False,
include_spam: Optional[bool] = True,
include_deleted: Optional[bool] = False,
frontend_user: deps.FrontendUserId = Depends(deps.get_frontend_user_id),
api_client: ApiClient = Depends(deps.get_api_client),
Expand Down

0 comments on commit 6c2d563

Please sign in to comment.