Skip to content

Commit

Permalink
Adding FCRANK members selector
Browse files Browse the repository at this point in the history
  • Loading branch information
james3304 committed Aug 2, 2024
1 parent de5a978 commit 89031ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions freecompany.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ func (s *Scraper) buildFreeCompanyMembersCollector(output chan *FreeCompanyMembe
Name: membersSelectors.Entry.Name.ParseThroughChildren(e)[0],
Rank: gcrank.Parse(membersSelectors.Entry.Rank.ParseThroughChildren(e)[0]),
RankIcon: membersSelectors.Entry.RankIcon.ParseThroughChildren(e)[0],
FcRank: membersSelectors.Entry.FcRank.ParseThroughChildren(e)[0],
}

worldDC := membersSelectors.Entry.Server.ParseThroughChildren(e)
Expand Down
1 change: 1 addition & 0 deletions internal/selectors/freecompany.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ type FreeCompanyMemberSelectors struct {
ID SelectorInfo `json:"ID"`
Name SelectorInfo `json:"NAME"`
Rank SelectorInfo `json:"RANK"`
FcRank SelectorInfo `json:"FC_RANK"`
RankIcon SelectorInfo `json:"RANK_ICON"`
Server SelectorInfo `json:"SERVER"`
} `json:"ENTRY"`
Expand Down
1 change: 1 addition & 0 deletions records.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ type FreeCompanyMember struct {
ID uint32
Name string
Rank gcrank.GCRank
FcRank string
RankIcon string
World string
DC string
Expand Down

0 comments on commit 89031ec

Please sign in to comment.