Skip to content

Commit

Permalink
MOD:修复快手total字段错误
Browse files Browse the repository at this point in the history
  • Loading branch information
ShilongLee committed Jul 22, 2024
1 parent e3db2ab commit 13271ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/kuaishou/logic/comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async def request_comments(id: str, cookie: str, offset: int, limit: int) -> tup
return resp, succ
comments.extend(resp.get('data', {}).get('visionCommentList', {}).get('rootComments', []))
pcursor = resp.get('data', {}).get('visionCommentList', {}).get('pcursor', '')
total = resp.get('data', {}).get('total', 0)
total = resp.get('data', {}).get('visionCommentList', {}).get('commentCount', 0)

ret = {"total": total, "comments": comments[offset:end_length]}
return ret, succ

0 comments on commit 13271ad

Please sign in to comment.