diff options
author | 2021-06-30 22:13:58 +0200 | |
---|---|---|
committer | 2021-07-06 02:02:12 +0200 | |
commit | 2478b2125918e04d82d18fef78fd8c0e719776ee (patch) | |
tree | 4493d44552bec2aa2c8d9b35e73a0d926d00a845 | |
parent | Move tag search to new design (diff) |
remove unused thresholds parameter
-rw-r--r-- | bot/exts/info/tags.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/bot/exts/info/tags.py b/bot/exts/info/tags.py index 854db5c5c..bbec5b86d 100644 --- a/bot/exts/info/tags.py +++ b/bot/exts/info/tags.py @@ -137,15 +137,9 @@ class Tags(Cog): self._tags[TagIdentifier(tag_group, tag_name)] = Tag(file.read_text("utf-8")) - def _get_suggestions( - self, - tag_identifier: TagIdentifier, - thresholds: Optional[list[int]] = None - ) -> list[tuple[TagIdentifier, Tag]]: + def _get_suggestions(self, tag_identifier: TagIdentifier) -> list[tuple[TagIdentifier, Tag]]: """Return a list of suggested tags for `tag_identifier`.""" - thresholds = thresholds or [100, 90, 80, 70, 60] - - for threshold in thresholds: + for threshold in [100, 90, 80, 70, 60]: suggestions = [ (identifier, tag) for identifier, tag in self._tags.items() |