Skip to content

Commit

Permalink
fix: community creation
Browse files Browse the repository at this point in the history
  • Loading branch information
New-dev0 committed Sep 4, 2024
1 parent b6e9ef4 commit 23fda18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions swibots/api/community/models/community.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def to_json(self) -> JSONDict:
"communityUsername": self.username,
"communityProfileUrl": self.profile_url,
"communityCoverUrl": self.cover_url,
"isPublic": self.is_public,
"isFree": self.is_free,
"public": self.is_public,
"free": self.is_free,
"createdBy": self.created_by,
"communityGuidelines": self.guidelines,
"communityDescription": self.description,
Expand All @@ -88,8 +88,8 @@ def from_json(self, data: Optional[JSONDict]) -> Optional["Community"]:
self.username = data.get("communityUsername")
self.profile_url = data.get("communityProfileUrl")
self.cover_url = data.get("communityCoverUrl")
self.is_public = data.get("isPublic")
self.is_free = data.get("isFree")
self.is_public = data.get("public")
self.is_free = data.get("free")
self.created_by = data.get("createdBy")
self.guidelines = data.get("communityGuidelines")
self.description = data.get("communityDescription")
Expand Down

0 comments on commit 23fda18

Please sign in to comment.