diff --git a/hivetools/community.py b/hivetools/community.py index 394e9db65e0dac0295b5817664cecb972fb50818..43f0757076e0199968b7b542016170ace3d3a043 100644 --- a/hivetools/community.py +++ b/hivetools/community.py @@ -25,8 +25,9 @@ class Community: """ + _id = 'com.steemit.community' _roles = ['admin', 'moderator', 'poster'] - _valid_settings = ['name', 'about', 'description', 'language', 'nsfw'] + _valid_settings = ['title', 'about', 'description', 'language', 'is_nsfw'] def __init__(self, community_name: str, account_name: str, steem_instance: Steem = None, **kwargs): self.steem = steem_instance or Steem(**kwargs) @@ -132,7 +133,7 @@ class Community: **{'json': community_op, 'required_auths': [], 'required_posting_auths': [self.account], - 'id': 'com.steemit.community'}) + 'id': Community._id}) return self.steem.commit.finalizeOp(op, self.account, 'posting') def _op(self, action: str, **params): diff --git a/setup.py b/setup.py index b927b003e73c71d8f5e745af2577fb9cfe548ecd..a91f0ae8b4e09adcd121c78fcf5718a42c924ea0 100644 --- a/setup.py +++ b/setup.py @@ -25,6 +25,7 @@ setup( 'pytest-console-scripts'], install_requires=[ + 'steem==0.18.1', 'maya', 'toolz', 'funcy',