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

[URGENT] added page_count attribute in overview class #79

Merged
merged 3 commits into from
Jul 2, 2023

Conversation

aliziauddin
Copy link
Contributor

Page Count attribute in screener overview class

Summary

In this PR i've just added page count attribute, so that i can access that value.

Type of Change

  • New feature (non-breaking change which adds functionality)

No new dependencies are required for this change.

@aliziauddin aliziauddin changed the title added page_count attribute in overview class [URGENT] added page_count attribute in overview class Jun 30, 2023
@aliziauddin
Copy link
Contributor Author

@lit26 can you please review this, if everything is fine then please merge this, as I need this update asap.
thanks.

@@ -34,6 +34,7 @@ def __init__(self):
v_page=self.v_page, signal="", filter="", ticker=""
)
self._load_setting()
self.page_count = 0
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set this to None

@@ -173,7 +174,9 @@ def _get_page(self, soup):
"""Check the page number"""
try:
options = soup.find(id="pageSelect").findAll("option")
return len(options)
page_count = len(options)
self.page_count = page_count
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Combine the above and return self.page_count

@aliziauddin aliziauddin requested a review from lit26 July 2, 2023 05:12
@lit26 lit26 merged commit d8e42cd into lit26:master Jul 2, 2023
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

Successfully merging this pull request may close these issues.

2 participants