Browse Source

[fix] unit converter plugin: can't be disabled in settings

Bnyro 1 year ago
parent
commit
383d873597
1 changed files with 3 additions and 0 deletions
  1. 3 0
      searx/plugins/unit_converter.py

+ 3 - 0
searx/plugins/unit_converter.py

@@ -29,6 +29,9 @@ name = "Unit converter plugin"
 description = gettext("Convert between units")
 description = gettext("Convert between units")
 default_on = True
 default_on = True
 
 
+plugin_id = "unit_converter"
+preference_section = "general"
+
 CONVERT_KEYWORDS = ["in", "to", "as"]
 CONVERT_KEYWORDS = ["in", "to", "as"]
 
 
 # inspired from https://stackoverflow.com/a/42475086
 # inspired from https://stackoverflow.com/a/42475086