|
@@ -38,7 +38,8 @@ def search_hot_tag_note():
|
|
browser = HuiTunBrowser(lock_util.get_idle_phone('huitun'), playwright)
|
|
browser = HuiTunBrowser(lock_util.get_idle_phone('huitun'), playwright)
|
|
result = browser.search_note_by_hot_tag(int(request_body.get('searchLimit')))
|
|
result = browser.search_note_by_hot_tag(int(request_body.get('searchLimit')))
|
|
xhs_browser = XhsBrowser(lock_util.get_idle_phone('xhs'), playwright)
|
|
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()
|
|
playwright.stop()
|
|
return api.success(result)
|
|
return api.success(result)
|
|
|
|
|