Skip to content

Commit 23fda18

Browse files
committed
fix: community creation
1 parent b6e9ef4 commit 23fda18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

swibots/api/community/models/community.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ def to_json(self) -> JSONDict:
6161
"communityUsername": self.username,
6262
"communityProfileUrl": self.profile_url,
6363
"communityCoverUrl": self.cover_url,
64-
"isPublic": self.is_public,
65-
"isFree": self.is_free,
64+
"public": self.is_public,
65+
"free": self.is_free,
6666
"createdBy": self.created_by,
6767
"communityGuidelines": self.guidelines,
6868
"communityDescription": self.description,
@@ -88,8 +88,8 @@ def from_json(self, data: Optional[JSONDict]) -> Optional["Community"]:
8888
self.username = data.get("communityUsername")
8989
self.profile_url = data.get("communityProfileUrl")
9090
self.cover_url = data.get("communityCoverUrl")
91-
self.is_public = data.get("isPublic")
92-
self.is_free = data.get("isFree")
91+
self.is_public = data.get("public")
92+
self.is_free = data.get("free")
9393
self.created_by = data.get("createdBy")
9494
self.guidelines = data.get("communityGuidelines")
9595
self.description = data.get("communityDescription")

0 commit comments

Comments
 (0)