From 8450b3598c71353047d69840ff6dc18c67b221b7 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Thu, 29 Feb 2024 12:02:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=8C=E6=AD=A5web=E7=AB=99=E7=82=B9?= =?UTF-8?q?=E7=9F=A5=E8=AF=86=E5=BA=93=20=E8=A7=A3=E6=9E=90md=20=E6=9C=AA?= =?UTF-8?q?=E6=8C=89=E7=85=A7=E6=A0=87=E7=AD=BE=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/util/fork.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/common/util/fork.py b/apps/common/util/fork.py index 65e2b907a..09904cc49 100644 --- a/apps/common/util/fork.py +++ b/apps/common/util/fork.py @@ -77,8 +77,8 @@ class Fork: if self.selector_list is None or len(self.selector_list) == 0: return str(bf) params = reduce(lambda x, y: {**x, **y}, - [{'class_': selector.replace('.', '')} if selector.startswith('.') else { - 'id': selector.replace("#", "") if selector.startswith("#") else {'name': selector}} for + [{'class_': selector.replace('.', '')} if selector.startswith('.') else + {'id': selector.replace("#", "")} if selector.startswith("#") else {'name': selector} for selector in self.selector_list], {}) f = bf.find_all(**params)