API Utilities Library
Filter a list of dicts
Parameters: |
|
---|---|
Returns: | Returns the filtered list |
Rtype list: |
This simple filter (one attribute, one exact-match value) searches a list of dicts to select items. It first searches the item dict for a matching attr then does an exact-match on the value. If property_field is given, it will look inside that field (if it exists and is a dict) for a matching value.