Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in nb_lookup if api_filter contains multiple
id
(#1042)
In the `nb_lookup` plugin, if we provide an `api_filter` containing the `id` field, it will use `.get()` instead of `.filter()`, thus returning the item instead of a list. See PR #376 for more information. This is fine if you supply only one id. But let's say you want to get a list of items by ids? For example: `id=1 id=5` I would expect to get a list of 2 items. But at the moment, it will return the first item only. This change adds a simple check to see if we're supplying multiple ids.
- Loading branch information