Beem: Discussions.get_discussions("blog", ...) may return the same two comments over and over
Project Information
- Repository: https://github.com/holgern/beem
- Project Name: Beem
- Publisher: @holger80
A GitHub issue was created: https://github.com/holgern/beem/issues/51.
The bug was acknowledged and fixed by the PO.
Expected behavior
Discussions.get_discussions('blog', query)
should return a number of blog posts from a steem account based on the query
parameter.
Actual behavior
Discussions.get_discussions('blog', query)
may return the same two posts over and over
How to reproduce
from beem.discussions import Query, Discussions
start_author = "crokkon"
start_permlink = "how-to-find-out-which-of-your-steem-apps-just-acted-in-your-name"
query_limit = 20
query = Query(start_author=start_author,
start_permlink=start_permlink, limit=query_limit,
tag=start_author)
dis = Discussions()
count = 0
for d in dis.get_discussions("blog", query):
print(("%d. " % (count + 1)) + str(d))
count += 1
Output:
1. <Comment @crokkon/how-to-find-out-which-of-your-steem-apps-just-acted-in-your-name>
2. <Comment @paulag/business-intelligence-steemit-weekly-contest-11-and-winner-10>
3. <Comment @crokkon/cashout-chains-steem-from-7400-accounts-leaves-steem-via-only-a-few-accounts>
4. <Comment @paulag/business-intelligence-steemit-weekly-contest-11-and-winner-10>
5. <Comment @crokkon/cashout-chains-steem-from-7400-accounts-leaves-steem-via-only-a-few-accounts>
6. <Comment @paulag/business-intelligence-steemit-weekly-contest-11-and-winner-10>
7. <Comment @crokkon/cashout-chains-steem-from-7400-accounts-leaves-steem-via-only-a-few-accounts>
8. <Comment @paulag/business-intelligence-steemit-weekly-contest-11-and-winner-10>
9. <Comment @crokkon/cashout-chains-steem-from-7400-accounts-leaves-steem-via-only-a-few-accounts>
10. <Comment @paulag/business-intelligence-steemit-weekly-contest-11-and-winner-10>
11. <Comment @crokkon/cashout-chains-steem-from-7400-accounts-leaves-steem-via-only-a-few-accounts>
12. <Comment @paulag/business-intelligence-steemit-weekly-contest-11-and-winner-10>
13. <Comment @crokkon/cashout-chains-steem-from-7400-accounts-leaves-steem-via-only-a-few-accounts>
14. <Comment @paulag/business-intelligence-steemit-weekly-contest-11-and-winner-10>
15. <Comment @crokkon/cashout-chains-steem-from-7400-accounts-leaves-steem-via-only-a-few-accounts>
16. <Comment @paulag/business-intelligence-steemit-weekly-contest-11-and-winner-10>
17. <Comment @crokkon/cashout-chains-steem-from-7400-accounts-leaves-steem-via-only-a-few-accounts>
18. <Comment @paulag/business-intelligence-steemit-weekly-contest-11-and-winner-10>
19. <Comment @crokkon/cashout-chains-steem-from-7400-accounts-leaves-steem-via-only-a-few-accounts>
20. <Comment @paulag/business-intelligence-steemit-weekly-contest-11-and-winner-10>
...
Environment
- beem at rev. e9ee462
- python 3.6.5
Hi @stmdev, thanks for making this cobtribution.
I see the PO already fixed it in this commit, thanks to you pulling his attention to it.
The post adds value to the open source community, the PO should be grateful to you in a way for regularly spotting behaviors in the project(beem) that are out of place.
Unlike your other bug reports, you left out what possibly led to
Discussions.get_discussions('blog', query)
returning duplicate copies of posts when called. My guess is the PO was on to it before you could dig further. This is reflected in my scoring of the report.Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]
Hey @stmdev
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!