Skip to content

Commit

Permalink
fix: compatible with ancient ip accounts #213
Browse files Browse the repository at this point in the history
  • Loading branch information
lumina37 committed Jul 21, 2024
1 parent a6f695c commit c46b084
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aiotieba/api/get_posts/_classdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ def from_tbdata(data_proto: TypeMessage) -> Posts:
thread.fname = forum.fname

objs = [Post.from_tbdata(p) for p in data_proto.post_list if not p.chat_content.bot_uk]
users = {i: UserInfo_p.from_tbdata(p) for p in data_proto.user_list if (i := p.id)}
users = {p.id: UserInfo_p.from_tbdata(p) for p in data_proto.user_list}
for post in objs:
post.fid = forum.fid
post.fname = forum.fname
Expand Down
2 changes: 1 addition & 1 deletion aiotieba/api/get_threads/_classdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ def from_tbdata(data_proto: TypeMessage) -> Threads:
tab_map = {p.tab_name: p.tab_id for p in data_proto.nav_tab_info.tab}

objs = [Thread.from_tbdata(p) for p in data_proto.thread_list]
users = {i: UserInfo_t.from_tbdata(p) for p in data_proto.user_list if (i := p.id)}
users = {p.id: UserInfo_t.from_tbdata(p) for p in data_proto.user_list}
for thread in objs:
thread.fname = forum.fname
thread.fid = forum.fid
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "aiotieba"
version = "4.4.7a0"
version = "4.4.7a1"
description = "Asynchronous I/O Client for Baidu Tieba"
authors = [{ name = "Starry-OvO", email = "starry.qvq@gmail.com" }]
urls = { Repository = "https://github.com/Starry-OvO/aiotieba/", Documentation = "https://aiotieba.cc/" }
Expand Down

0 comments on commit c46b084

Please sign in to comment.