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

Fixed NEPTUNE_ENABLED flag #43

Merged
merged 8 commits into from
Aug 23, 2022
Merged

Fixed NEPTUNE_ENABLED flag #43

merged 8 commits into from
Aug 23, 2022

Conversation

Raalsky
Copy link
Contributor

@Raalsky Raalsky commented Aug 19, 2022

No description provided.


def ensure_bool(value: Optional[Union[str, bool]]) -> bool:
if isinstance(value, str):
return value.lower() not in ('false', 'no', '0')
Copy link
Contributor

Choose a reason for hiding this comment

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

You can add strip() here as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@Raalsky Raalsky force-pushed the rj/fix-enabled-flag branch from 02e13c8 to 3390448 Compare August 23, 2022 07:55
@Raalsky Raalsky merged commit 31f3eb0 into main Aug 23, 2022
@Raalsky Raalsky deleted the rj/fix-enabled-flag branch August 23, 2022 15:13
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