-
Notifications
You must be signed in to change notification settings - Fork 5
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
Build status #33
Build status #33
Conversation
build_status.py
Outdated
defaults = config['defaults'] | ||
for code, language in languages.items(): | ||
language_code = code.lower().replace('_', '-') | ||
in_switcher = language.get('in_prod', defaults['in_prod']) |
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.
defaults = config['defaults'] | |
for code, language in languages.items(): | |
language_code = code.lower().replace('_', '-') | |
in_switcher = language.get('in_prod', defaults['in_prod']) | |
for code, language in languages.items(): | |
language_code = code.lower().replace('_', '-') | |
in_switcher = language.get('in_prod', True) |
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.
Thank you for reviewing! I agree that this suggestion improves readability. I'm concerned it doesn't honour https://github.com/python/docsbuild-scripts/blob/e4a8aff9772738a63d0945042777d18c3d926930/config.toml#L3; I was thinking if to propose a simplification upstream, but it makes the toml config file better self-describing
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.
I've simplified this code a bit https://github.com/m-aciek/pydocs-translation-dashboard/pull/33/commits/2db4095e9ff47d33a578234b5aa9f0f52fd6f940
Co-authored-by: Adam Turner <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
Closes #31.