Skip to content

Commit

Permalink
Fix issue with optional "sector" field for Buhl rate - run all 3970 u…
Browse files Browse the repository at this point in the history
…tilities without issue
  • Loading branch information
sjanzou committed Oct 13, 2024
1 parent 5245c91 commit 36174d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/urdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,9 @@ bool OpenEI::QueryUtilityRates(const wxString &name, std::vector<RateInfo> &rate
x.GUID = item_list[i][L"label"].GetString();
x.Name = item_list[i][L"name"].GetString();
x.Utility = item_list[i][L"utility"].GetString();
x.Sector = item_list[i][L"sector"].GetString();
// optional
if (item_list[i].HasMember(L"sector"))
x.Sector = item_list[i][L"sector"].GetString();
// optional
if (item_list[i].HasMember(L"description"))
x.Description = item_list[i][L"description"].GetString();
Expand Down

0 comments on commit 36174d3

Please sign in to comment.