Browse Source

fix: 热门标签文章小红书详情搜索修复

wuwenyi 1 month ago
parent
commit
bcca9a5960
1 changed files with 2 additions and 1 deletions
  1. 2 1
      api/search.py

+ 2 - 1
api/search.py

@@ -38,7 +38,8 @@ def search_hot_tag_note():
     browser = HuiTunBrowser(lock_util.get_idle_phone('huitun'), playwright)
     result = browser.search_note_by_hot_tag(int(request_body.get('searchLimit')))
     xhs_browser = XhsBrowser(lock_util.get_idle_phone('xhs'), playwright)
-    xhs_browser.polish_huitun_note(result.get('tagNotes').values())
+    note_list = [item for sublist in result.get('tagNotes').values() for item in sublist]
+    xhs_browser.polish_huitun_note(note_list)
     playwright.stop()
     return api.success(result)