mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
fix wrong method using (#6459)
This commit is contained in:
parent
9e168f9d1c
commit
57729823a0
|
@ -845,7 +845,7 @@ class DocumentService:
|
||||||
'only_main_content': website_info.get('only_main_content', False),
|
'only_main_content': website_info.get('only_main_content', False),
|
||||||
'mode': 'crawl',
|
'mode': 'crawl',
|
||||||
}
|
}
|
||||||
if url.length > 255:
|
if len(url) > 255:
|
||||||
document_name = url[:200] + '...'
|
document_name = url[:200] + '...'
|
||||||
else:
|
else:
|
||||||
document_name = url
|
document_name = url
|
||||||
|
|
Loading…
Reference in New Issue
Block a user