-
Notifications
You must be signed in to change notification settings - Fork 2
Jp parsing #80
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
Jp parsing #80
Conversation
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.
Could you add a description on the PR outlining all the changes produced here?
Done |
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.
Almost there!
model/main.py
Outdated
all_token_content = renderer.wrap_all_token_details(all_token_content) | ||
content += all_token_content | ||
model = renderer.get_model(country) | ||
if model is not 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.
Can we just have if model:
here? It is simpler to parse that is not 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.
We can, I replaced it by if model:
and did the same in other files.
model/renderer.py
Outdated
|
||
countries = [] | ||
vendor_extension_extra_pages: List[ExtraPage] = [] | ||
LEGACY_COUNTRY_CODE = "XX" |
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.
This is defined, but not used. Why do we need this?
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.
This is used in other CL (related to this one) that I also sent for review.
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.
Let's define this where it's used.
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.
Done
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 % removing the unused constant.
model/renderer.py
Outdated
|
||
countries = [] | ||
vendor_extension_extra_pages: List[ExtraPage] = [] | ||
LEGACY_COUNTRY_CODE = "XX" |
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.
Let's define this where it's used.
Uh oh!
There was an error while loading. Please reload this page.