Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions steem/steemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down