RedditVideoMakerBot
RedditVideoMakerBot copied to clipboard
Subreddit.py improved readability
- Extracted logic into smaller functions: get_reddit_instance, get_subreddit, get_submission, and collect_comments
- Added comments to explain the purpose of functions and key steps
- Organized code for better structure and readability
Description
The subreddit.py file was refactored to improve readability and maintainability by breaking down the code into smaller, focused functions. Comments were added to explain the purpose of functions and key steps, and the code was reorganized for better structure. These changes were made to make the code easier to understand and work with.
Issue Fixes
None
Checklist:
- [ x ] I am pushing changes to the develop branch
- [ x ] I am using the recommended development environment
- [ x ] I have performed a self-review of my own code
- [ x ] I have commented my code, particularly in hard-to-understand areas
- [ x ] I have formatted and linted my code using python-black and pylint
- [ x ] I have cleaned up unnecessary files
- [ x ] My changes generate no new warnings
- [ x ] My changes follow the existing code-style
- [ x ] My changes are relevant to the project
Any other information (e.g how to test the changes)
None