mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-02 03:15:37 +00:00
LoTW returns STATE as 'CODE // Name' (verified with a real report 2026-09), e.g. 'GD // Guangdong' (China), '34 // Tottori-ken' (Japan), 'CA // California' (US). The award calculator matched on the bare CODE, so every mainland China province (WAPC), all Japan prefectures (WAJA) and US states (WAS) failed — WAPC only showed HK/MO/TW (entity branch, no STATE needed) and WAJA was empty. Normalize STATE once at parse time: strip the ' // Name' suffix so the stored GridQso.state is the clean code consumed by persistence and AwardCalculator. Add a test covering China/Japan/US formats.