From ad59a581c7f34c19b43b83737cbb3b09f1a3260c Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 22 Sep 2023 15:56:49 -0400 Subject: [PATCH] symcache: passthrough `rapidfuzz.process.extract` kwargs --- piker/data/_symcache.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/piker/data/_symcache.py b/piker/data/_symcache.py index 44057e89..d06420ff 100644 --- a/piker/data/_symcache.py +++ b/piker/data/_symcache.py @@ -472,6 +472,7 @@ def match_from_pairs( pairs: dict[str, Struct], query: str, score_cutoff: int = 50, + **extract_kwargs, ) -> dict[str, Struct]: ''' @@ -495,6 +496,7 @@ def match_from_pairs( query=query, choices=keys, score_cutoff=score_cutoff, + **extract_kwargs, ) # pop and repack pairs in output dict