Skip to content

Commit

Permalink
get rid of lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
djay committed Jul 25, 2021
1 parent 4562714 commit 1b3625e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/collective/collectionfilter/filteritems.py
Expand Up @@ -137,7 +137,8 @@ def get_filter_items(
# Optional modifier to modify the metadata value into one or more groupby values
groupby_modifier = groupby_criteria[group_by].get("groupby_modifier", None)
if not groupby_modifier:
groupby_modifier = lambda values, cur, narrow: values # noqa
def groupby_modifier(values, cur, narrow):
return values
# Value blacklist
value_blacklist = groupby_criteria[group_by].get("value_blacklist", None)
# Allow value_blacklist to be callables for runtime-evaluation
Expand Down

0 comments on commit 1b3625e

Please sign in to comment.