Fixed the issue where parts of the report were missing. #63
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Incorrect use of the
dedupe()
function caused some content to be lost from the message retrieved from the webpage.For example,
091100Z 0912/1018 12005KT 3500 BR RA SCT025 FEW030CB BKN080 BECMG 0915/0917 14005KT 3000 **BR** -RA **SCT025** BKN090 TEMPO 1000/1004 11008KT 1500 TSRA FEW015 **SCT025 FEW030CB** OVC090 **BECMG** 1005/1007 11010G20KT 2500 **BR -RA SCT025 BKN090 BECMG** 1015/1017 **14005KT 3000 BR -RA** FEW030 SCT090
After the
dedupe()
, the message comes to,091100Z 0912/1018 12005KT 3500 BR RA SCT025 FEW030CB BKN080 BECMG 0915/0917 14005KT 3000 -RA BKN090 TEMPO 1000/1004 11008KT 1500 TSRA FEW015 OVC090 1005/1007 11010G20KT 2500 1015/1017 FEW030 SCT090
many parts are lost.
This PR fixed this issue.
Checklist
CHANGELOG.md
OR changes are insignificant