Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add file_count() method in py4chan #28

Open
antonizoon opened this issue Nov 16, 2015 · 0 comments
Open

Add file_count() method in py4chan #28

antonizoon opened this issue Nov 16, 2015 · 0 comments

Comments

@antonizoon
Copy link
Member

In fourchan.py, there happen to be these notes in line 246:

# TODO: extend BASC-py4chan to give us this number directly
self.threads[thread_id]['total_files'] = len(list(thread['thread'].filenames()))

And line 255:

# TODO: extend BASC-py4chan to give us this number directly
self.threads[thread_id]['total_files'] = len(list(running_thread.filenames()))

Apparently, it might be a good idea to have a file_count() method in basc_py4chan.Thread that counts the amount of replies where has_file returns True.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant