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

bt!nh no worky work #1

Closed
FearrMe opened this issue Sep 8, 2020 · 1 comment
Closed

bt!nh no worky work #1

FearrMe opened this issue Sep 8, 2020 · 1 comment

Comments

@FearrMe
Copy link

FearrMe commented Sep 8, 2020

https://i.imgur.com/S4RHyLY.png

always links to nh.net/g/0

guessing its this return 0

func (raw *rawNHBook) id() int {
if id, ok := raw.ID.(int); ok {
return id
} else if id, ok := raw.ID.(string); ok {
intID, _ := strconv.Atoi(id)
return intID
} else {
return 0
}
}

@VTGare VTGare closed this as completed in 9e585a3 Sep 10, 2020
@VTGare
Copy link
Owner

VTGare commented Sep 10, 2020

Cringe interface conversion thinks 177013 is float64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants