Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Oct 4, 2024
1 parent 92d9fb1 commit fc58c6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/backend/base/langflow/api/v1/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def read_flows(
return [
{"id": flow.id, "name": flow.name, "folder_id": flow.folder_id, "is_component": flow.is_component}
for flow in flows
] # type: ignore # noqa: E501
] # type: ignore
return flows
return paginate(session, stmt, params=params)

Expand Down
4 changes: 2 additions & 2 deletions src/backend/base/langflow/api/v1/folders.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ def read_folder(
stmt = (
select(Flow)
.where(Flow.folder_id == folder_id, Flow.user_id == current_user.id)
.order_by(Flow.updated_at.desc()) # type: ignore # noqa: E501
.order_by(Flow.updated_at.desc()) # type: ignore
)
if is_component:
stmt = stmt.where(Flow.is_component == True) # type: ignore # noqa: E712
if is_flow:
stmt = stmt.where(Flow.is_component == False) # type: ignore # noqa: E712
if search:
stmt = stmt.where(Flow.name.like(f"%{search}%")) # type: ignore # noqa: E712
stmt = stmt.where(Flow.name.like(f"%{search}%")) # type: ignore
paginated_flows = paginate(session, stmt, params=params)

return FolderWithPaginatedFlows(folder=FolderRead.model_validate(folder), flows=paginated_flows)
Expand Down

0 comments on commit fc58c6f

Please sign in to comment.