on master help sign in
Change self plugin to self_info + change self_info description
commit0fe362bacf608f535680a68c0d38784b331a45e3 authorLuc Didry <luc@didry.org> dateMon 15 Jun 2015, 13:36 (11 years ago) parent41fd748
3 files changed+4−4
searx/plugins/__init__.py+2−2 searx/plugins/self.py → searx/plugins/self_info.py+1−1 searx/tests/test_plugins.py+1−1
searx/plugins/__init__.py+2−2
@@ -20,7 +20,7 @@ from searx import logger
2020logger = logger.getChild('plugins')
2121
2222from searx.plugins import (https_rewrite,
23− self,
23+ self_info,
2424 search_on_category_select)
2525
2626required_attrs = (('name', str),
@@ -71,5 +71,5 @@ class PluginStore():
7171
7272plugins = PluginStore()
7373plugins.register(https_rewrite)
74−plugins.register(self)
74+plugins.register(self_info)
7575plugins.register(search_on_category_select)
searx/plugins/self.py → searx/plugins/self_info.pyrenamed+1−1
@@ -17,7 +17,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
1717from flask.ext.babel import gettext
1818import re
1919name = "Self Informations"
20−description = gettext('Correct Duckduckgo instant answers with your own informations (IP and User Agent)')
20+description = gettext('Displays your IP if the query is "ip" and your user agent if the query contains "user agent".')
2121default_on = True
2222
2323
searx/tests/test_plugins.py+1−1
@@ -38,7 +38,7 @@ class SelfIPTest(SearxTestCase):
3838
3939 def test_PluginStore_init(self):
4040 store = plugins.PluginStore()
41− store.register(plugins.self)
41+ store.register(plugins.self_info)
4242
4343 self.assertTrue(len(store.plugins) == 1)
4444