Skip to content

Commit 902d0ba

Browse files
author
calvin
committed
v0.2.8 fix in resource search
1 parent 1e1d921 commit 902d0ba

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

admin/app/services/next_console/attachment.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,8 @@ def search_resources_by_rag(params):
707707
return next_console_response(error_status=True, error_message="用户不存在!")
708708
resource_conditions = [
709709
ResourceObjectMeta.user_id == user_id,
710-
ResourceObjectMeta.resource_status == "正常"
710+
ResourceObjectMeta.resource_status == "正常",
711+
ResourceObjectMeta.resource_source == "resource_center",
711712
]
712713
if resource_formats:
713714
resource_conditions.append(ResourceObjectMeta.resource_format.in_(resource_formats))

0 commit comments

Comments
 (0)