From 3fca46ddee78eb459f6046a5ec0ea84146522e0b Mon Sep 17 00:00:00 2001 From: Polianek <36715806+Polianek@users.noreply.github.com> Date: Sun, 10 Feb 2019 18:39:04 +0100 Subject: [PATCH] Get_posts have now option few tags to search. --- steem/steemd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/steem/steemd.py b/steem/steemd.py index 6ae89bc..bf94fe5 100644 --- a/steem/steemd.py +++ b/steem/steemd.py @@ -97,18 +97,18 @@ def get_promoted(self): r.append(Post(post, steemd_instance=self)) return r - def get_posts(self, limit=10, sort="hot", category=None, start=None): + def get_posts(self, limit=10, sort="hot", categories=[], start=None): """ Get multiple posts in an array. :param int limit: Limit the list of posts by ``limit`` :param str sort: Sort the list by "recent" or "payout" - :param str category: Only show posts in this category + :param str categories: Only show posts in this categories :param str start: Show posts after this post. Takes an identifier of the form ``author/permlink`` """ discussion_query = { - "tag": category, + "tag": categories, "limit": limit, } if start: