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

Remove hard-coded reference to species.id #347

Open
jwalgran opened this issue Jan 31, 2017 · 0 comments
Open

Remove hard-coded reference to species.id #347

jwalgran opened this issue Jan 31, 2017 · 0 comments

Comments

@jwalgran
Copy link
Contributor

When converting a filter selection to a query, there is a hard-coded reference to species.id

- (NSDictionary *)queryParams {
if ([self active]) {
return @{ @"species.id": @{ @"IS": speciesId }};
} else {
return [NSDictionary dictionary];
}
}

Other filters read their field identifier dynamically from the instance info API response. Species should not be an exception.

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

No branches or pull requests

1 participant