Skip to content

Commit

Permalink
[MODIFY] #74 mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mallycrip committed Dec 8, 2020
1 parent 0100eee commit 4aa4f12
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
from proto.python.club import club_student_pb2

def get_club_list_mapper(clubs_proto: club_student_pb2.GetClubInformsWithUUIDsResponse):
if clubs_proto == None: return []
clubs = []
for club in clubs_proto.informs:
for club in clubs_proto.Informs:
clubs.append(
Club(
uuid=club.ClubUUID,
Expand Down

0 comments on commit 4aa4f12

Please sign in to comment.