forked from Ponysearch/Ponysearch
Merge branch 'master' of https://github.com/asciimoo/searx
This commit is contained in:
commit
e31a234551
2 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
||||||
|
|
||||||
|
categories = ['general'] # optional
|
||||||
|
|
||||||
def request(query, params):
|
def request(query, params):
|
||||||
'''pre-request callback
|
'''pre-request callback
|
||||||
params<dict>:
|
params<dict>:
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
<input type="submit" value="search" />
|
<input type="submit" value="search" />
|
||||||
<p>
|
<p>
|
||||||
{% for category in categories %}
|
{% for category in categories %}
|
||||||
{{ category }}: <input type="checkbox" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} />
|
<input type="checkbox" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} />{{ category }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
<p>remember categories:<input type="checkbox" name="save" checked="checked" /></p>
|
<p><input type="checkbox" name="save" checked="checked" />remember categories</p>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue