Skip to content

Commit

Permalink
Merge pull request #14 from jheidecker/main
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
tjkessler authored Jul 20, 2023
2 parents 7ec7593 + ed10880 commit ede7c80
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plemmy/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def __init__(self, api_response: requests.Response) -> None:
response = api_response.json()
self.community_view = CommunityView(response["community_view"])
self.cross_posts = [PostView(p) for p in response["cross_posts"]]
self.moderators = CommunityModeratorView(response["moderators"])
self.moderators = [CommunityModeratorView(m) for m in response["moderators"]]
self.post_view = PostView(response["post_view"])


Expand Down Expand Up @@ -318,7 +318,8 @@ def __init__(self, api_response: requests.Response) -> None:
response = api_response.json()
self.admins = [PersonView(a) for a in response["admins"]]
self.all_languages = [Language(**lang)
for lang in response["discussion_languages"]]
for lang in response["all_languages"]]
self.discussion_languages = response["discussion_languages"]
if "my_user" in response.keys():
self.my_user = response["my_user"]
else:
Expand Down

0 comments on commit ede7c80

Please sign in to comment.