We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e1d921 commit 902d0baCopy full SHA for 902d0ba
1 file changed
admin/app/services/next_console/attachment.py
@@ -707,7 +707,8 @@ def search_resources_by_rag(params):
707
return next_console_response(error_status=True, error_message="用户不存在!")
708
resource_conditions = [
709
ResourceObjectMeta.user_id == user_id,
710
- ResourceObjectMeta.resource_status == "正常"
+ ResourceObjectMeta.resource_status == "正常",
711
+ ResourceObjectMeta.resource_source == "resource_center",
712
]
713
if resource_formats:
714
resource_conditions.append(ResourceObjectMeta.resource_format.in_(resource_formats))
0 commit comments