-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fetch only the required subtree of the website instead of the whole site #102
base: flexbooks
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## flexbooks #102 +/- ##
=============================================
- Coverage 44.55% 43.66% -0.90%
=============================================
Files 18 19 +1
Lines 1102 1136 +34
Branches 154 163 +9
=============================================
+ Hits 491 496 +5
- Misses 599 628 +29
Partials 12 12 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ; see name change suggestion
@@ -0,0 +1,4 @@ | |||
class BadBookPageError(Exception): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BadBookPage implies that the Book page as an issue. In this case, the problem is more with the request if I understand correctly. If so, *IncorectBookPage` seems more appropriate.
if raw_tags is None: | ||
raise MindtouchParsingError(f"No tags property for page {page_id}") | ||
raw_tag = raw_tags.get("tag", None) | ||
if raw_tag is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cant we combine those two conditions into one?
Changes:
LibraryPage
objects, but only the page id as a stringNone
for more obvious handling