mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-28 14:52:58 +00:00
fix: 同步web站点知识库 解析md 未按照标签解析
This commit is contained in:
parent
298f638234
commit
8450b3598c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue