From 867f17be566660cf8ce9a8cabbbdd832c70c5b26 Mon Sep 17 00:00:00 2001 From: jyong <718720800@qq.com> Date: Fri, 14 Jun 2024 19:59:57 +0800 Subject: [PATCH] lint --- api/services/website_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/services/website_service.py b/api/services/website_service.py index 58ff0b012118a7..c166b01237b6c4 100644 --- a/api/services/website_service.py +++ b/api/services/website_service.py @@ -54,8 +54,8 @@ def crawl_url(cls, args: dict) -> dict: } } else: - includes = ','.join(options.get('includes')) if options.get('includes') else [] - excludes = ','.join(options.get('excludes')) if options.get('excludes') else [] + includes = options.get('includes').split(',') if options.get('includes') else [] + excludes = options.get('excludes').split(',') if options.get('excludes') else [] params = { 'crawlerOptions': { "includes": includes if includes else [],