Browse Source

Thanks @pointhi !

Cqoicebordel 10 years ago
parent
commit
4d0aeae567
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      searx/autocomplete.py

+ 3
- 3
searx/autocomplete.py View File

@@ -49,17 +49,17 @@ def searx_bang(full_query):
49 49
             # check if query starts with categorie name
50 50
             for categorie in categories:
51 51
                 if categorie.startswith(engine_query):
52
-                    results.append('!{categorie}'.format(categorie=categorie))
52
+                    results.append(first_char+'{categorie}'.format(categorie=categorie))
53 53
 
54 54
             # check if query starts with engine name
55 55
             for engine in engines:
56 56
                 if engine.startswith(engine_query.replace('_', ' ')):
57
-                    results.append('!{engine}'.format(engine=engine.replace(' ', '_')))
57
+                    results.append(first_char+'{engine}'.format(engine=engine.replace(' ', '_')))
58 58
 
59 59
             # check if query starts with engine shortcut
60 60
             for engine_shortcut in engine_shortcuts:
61 61
                 if engine_shortcut.startswith(engine_query):
62
-                    results.append('!{engine_shortcut}'.format(engine_shortcut=engine_shortcut))
62
+                    results.append(first_char+'{engine_shortcut}'.format(engine_shortcut=engine_shortcut))
63 63
 
64 64
     # check if current query stats with :bang
65 65
     elif first_char == ':':