Skip to content

Commit

Permalink
fix: wtf the has_more
Browse files Browse the repository at this point in the history
  • Loading branch information
z0z0r4 committed Feb 24, 2024
1 parent 8294f14 commit fd283ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/examples/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ async def main():
if 'cards' in page:
# 若存在 cards 字段(即动态数据),则将该字段列表扩展到 dynamics
dynamics.extend(page['cards'])
else:
break

if page['has_more'] != 1:
# 如果没有更多动态,跳出循环
Expand Down

0 comments on commit fd283ec

Please sign in to comment.