Selaa lähdekoodia

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

wuwenyi 1 kuukausi sitten
vanhempi
commit
bcca9a5960
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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)