正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -449,7 +449,7 @@ def get_confirm_notifs(client, res): | @@ -449,7 +449,7 @@ def get_confirm_notifs(client, res): | ||
| 449 | def hovercard_get_addfriend(res): | 449 | def hovercard_get_addfriend(res): |
| 450 | b = bs4.BeautifulSoup(res['jsmods']['markup'][0][1]['__html'], 'html.parser') | 450 | b = bs4.BeautifulSoup(res['jsmods']['markup'][0][1]['__html'], 'html.parser') |
| 451 | button = b.find('button', class_='FriendRequestAdd') | 451 | button = b.find('button', class_='FriendRequestAdd') |
| 452 | - return not button is None | 452 | + return True if button is not None else False |
| 453 | 453 | ||
| 454 | 454 | ||
| 455 | def get_ext_data(res): | 455 | def get_ext_data(res): |
-
请 注册 或 登录 后发表评论