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

Ultraviolet Enum Returning Incorrect Values #42

Merged
merged 1 commit into from
May 18, 2023

Conversation

xcloudyunx
Copy link
Contributor

wttr.in has UV values ranging from 1 to 12. This is supposed to get mapped to LOW, MODERATE, HIGH, VERY_HIGH, or EXTREME. However, the mapping is incorrect due to declarations using the auto keyword. e.g. If wttr returns a UV value of 5, EXTREME gets returned instead of MODERATE.

By starting the enum values at 13, it is outside the range of valid wttr values, so it will return the correct enum value.

@null8626
Copy link
Owner

Thank you sooooo much for this! ❤️

@null8626 null8626 merged commit 8b037b6 into null8626:main May 18, 2023
null8626 added a commit that referenced this pull request Jun 20, 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