Prechádzať zdrojové kódy

fix wrong method using (#6459)

Jyong 9 mesiacov pred
rodič
commit
57729823a0
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      api/services/dataset_service.py

+ 1 - 1
api/services/dataset_service.py

@@ -845,7 +845,7 @@ class DocumentService:
                         'only_main_content': website_info.get('only_main_content', False),
                         'mode': 'crawl',
                     }
-                    if url.length > 255:
+                    if len(url) > 255:
                         document_name = url[:200] + '...'
                     else:
                         document_name = url