Skip to content

Commit

Permalink
fix: has_bawu flag of Forum_detail
Browse files Browse the repository at this point in the history
  • Loading branch information
lumina37 committed Feb 26, 2024
1 parent 4df9c2a commit 5a27d6f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion aiotieba/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "4.0.4a2"
__version__ = "4.0.4a3"
2 changes: 1 addition & 1 deletion aiotieba/api/get_forum_detail/_classdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ def from_tbdata(data_proto: TypeMessage) -> "Forum_detail":
slogan = forum_proto.slogan
member_num = forum_proto.member_count
post_num = forum_proto.thread_count
has_bawu = data_proto.election_tab.new_manager_status == 5
has_bawu = data_proto.election_tab.new_strategy_text == "已有吧主"
return Forum_detail(fid, fname, small_avatar, origin_avatar, slogan, member_num, post_num, has_bawu)
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ message GetForumDetailResIdl {
}
RecommendForumInfo forum_info = 1;
message ManagerElectionTab {
uint32 new_manager_status = 4;
string new_strategy_text = 5;
}
ManagerElectionTab election_tab = 8;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from ..._protobuf import Error_pb2 as Error__pb2

DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
b'\n\x1aGetForumDetailResIdl.proto\x1a\x0b\x45rror.proto\"\xc6\x03\n\x14GetForumDetailResIdl\x12\x15\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x06.Error\x12+\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1d.GetForumDetailResIdl.DataRes\x1a\xe9\x02\n\x07\x44\x61taRes\x12\x44\n\nforum_info\x18\x01 \x01(\x0b\x32\x30.GetForumDetailResIdl.DataRes.RecommendForumInfo\x12\x46\n\x0c\x65lection_tab\x18\x08 \x01(\x0b\x32\x30.GetForumDetailResIdl.DataRes.ManagerElectionTab\x1a\x9d\x01\n\x12RecommendForumInfo\x12\x0e\n\x06\x61vatar\x18\x01 \x01(\t\x12\x10\n\x08\x66orum_id\x18\x02 \x01(\x04\x12\x12\n\nforum_name\x18\x03 \x01(\t\x12\x14\n\x0cmember_count\x18\x05 \x01(\r\x12\x14\n\x0cthread_count\x18\x06 \x01(\r\x12\x0e\n\x06slogan\x18\x07 \x01(\t\x12\x15\n\ravatar_origin\x18\x14 \x01(\t\x1a\x30\n\x12ManagerElectionTab\x12\x1a\n\x12new_manager_status\x18\x04 \x01(\rb\x06proto3'
b'\n\x1aGetForumDetailResIdl.proto\x1a\x0b\x45rror.proto\"\xc5\x03\n\x14GetForumDetailResIdl\x12\x15\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x06.Error\x12+\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1d.GetForumDetailResIdl.DataRes\x1a\xe8\x02\n\x07\x44\x61taRes\x12\x44\n\nforum_info\x18\x01 \x01(\x0b\x32\x30.GetForumDetailResIdl.DataRes.RecommendForumInfo\x12\x46\n\x0c\x65lection_tab\x18\x08 \x01(\x0b\x32\x30.GetForumDetailResIdl.DataRes.ManagerElectionTab\x1a\x9d\x01\n\x12RecommendForumInfo\x12\x0e\n\x06\x61vatar\x18\x01 \x01(\t\x12\x10\n\x08\x66orum_id\x18\x02 \x01(\x04\x12\x12\n\nforum_name\x18\x03 \x01(\t\x12\x14\n\x0cmember_count\x18\x05 \x01(\r\x12\x14\n\x0cthread_count\x18\x06 \x01(\r\x12\x0e\n\x06slogan\x18\x07 \x01(\t\x12\x15\n\ravatar_origin\x18\x14 \x01(\t\x1a/\n\x12ManagerElectionTab\x12\x19\n\x11new_strategy_text\x18\x05 \x01(\tb\x06proto3'
)

_globals = globals()
Expand All @@ -20,10 +20,10 @@
if _descriptor._USE_C_DESCRIPTORS is False:
DESCRIPTOR._options = None
_globals['_GETFORUMDETAILRESIDL']._serialized_start = 44
_globals['_GETFORUMDETAILRESIDL']._serialized_end = 498
_globals['_GETFORUMDETAILRESIDL']._serialized_end = 497
_globals['_GETFORUMDETAILRESIDL_DATARES']._serialized_start = 137
_globals['_GETFORUMDETAILRESIDL_DATARES']._serialized_end = 498
_globals['_GETFORUMDETAILRESIDL_DATARES']._serialized_end = 497
_globals['_GETFORUMDETAILRESIDL_DATARES_RECOMMENDFORUMINFO']._serialized_start = 291
_globals['_GETFORUMDETAILRESIDL_DATARES_RECOMMENDFORUMINFO']._serialized_end = 448
_globals['_GETFORUMDETAILRESIDL_DATARES_MANAGERELECTIONTAB']._serialized_start = 450
_globals['_GETFORUMDETAILRESIDL_DATARES_MANAGERELECTIONTAB']._serialized_end = 498
_globals['_GETFORUMDETAILRESIDL_DATARES_MANAGERELECTIONTAB']._serialized_end = 497

0 comments on commit 5a27d6f

Please sign in to comment.