Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding FCRANK members selector #27

Merged
merged 2 commits into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading