Browse Source

Change self plugin to self_info + change self_info description

Luc Didry 9 years ago
parent
commit
0fe362bacf
3 changed files with 4 additions and 4 deletions
  1. 2
    2
      searx/plugins/__init__.py
  2. 1
    1
      searx/plugins/self_info.py
  3. 1
    1
      searx/tests/test_plugins.py

+ 2
- 2
searx/plugins/__init__.py View File

@@ -20,7 +20,7 @@ from searx import logger
20 20
 logger = logger.getChild('plugins')
21 21
 
22 22
 from searx.plugins import (https_rewrite,
23
-                           self,
23
+                           self_info,
24 24
                            search_on_category_select)
25 25
 
26 26
 required_attrs = (('name', str),
@@ -71,5 +71,5 @@ class PluginStore():
71 71
 
72 72
 plugins = PluginStore()
73 73
 plugins.register(https_rewrite)
74
-plugins.register(self)
74
+plugins.register(self_info)
75 75
 plugins.register(search_on_category_select)

searx/plugins/self.py → searx/plugins/self_info.py View File

@@ -17,7 +17,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
17 17
 from flask.ext.babel import gettext
18 18
 import re
19 19
 name = "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".')
21 21
 default_on = True
22 22
 
23 23
 

+ 1
- 1
searx/tests/test_plugins.py View File

@@ -38,7 +38,7 @@ class SelfIPTest(SearxTestCase):
38 38
 
39 39
     def test_PluginStore_init(self):
40 40
         store = plugins.PluginStore()
41
-        store.register(plugins.self)
41
+        store.register(plugins.self_info)
42 42
 
43 43
         self.assertTrue(len(store.plugins) == 1)
44 44