Skip to content

Commit

Permalink
Merge pull request #27 from james3304/main
Browse files Browse the repository at this point in the history
Adding FCRANK members selector
  • Loading branch information
karashiiro authored Aug 3, 2024
2 parents de5a978 + 422510f commit d206af4
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 d206af4

Please sign in to comment.