Refactor to work with praw 2.x
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Locate uses of praw.Submission.all_comments_flat and inspect the existing flatten_tree helper. Replace the removed access using the issue's replace_more_comments and flatten_tree approach, then verify that the bot still gathers all comments when run with praw 2.x.
Written by the indexing model from the issue text.
Description
Bot requires a version of praw.Submission.all_comments_flat, which was removed from praw. To stay up to date, replace all_comments flat like this:
subm.replace_more_comments()
all_comments_flat = flatten_tree(subm.comments)
Pertinent discussion: http://www.reddit.com/r/redditdev/comments/17tn7r/replacement_for_all_comments_flat/
- Dominant language
- Python
- Stars
- 26
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dmarx/VideoLinkBot
-
Add logging support Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 30/100
dmarx/VideoLinkBot#38 ·
-
"by request" bot Opendream
Difficulty 5/5 Over a week Newbie friendliness 25/100
dmarx/VideoLinkBot#37 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
dmarx/VideoLinkBot#36 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
dmarx/VideoLinkBot#34 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
dmarx/VideoLinkBot#33 ·
All issues in dmarx/VideoLinkBot
Similar issues
-
bug priority:low
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
CyberAgent/psd2svg#436 ·
-
area/install-update comp/cli comp/desktop P3 sweeper:risk-compatibility type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
NousResearch/hermes-agent#122386 · 1 comment ·
-
ai-generated
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vllm-project/production-stack#1105 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100