Pārlūkot izejas kodu

[mod] index rendering

asciimoo 11 gadus atpakaļ
vecāks
revīzija
599c801ecd
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3
    0
      searx/webapp.py

+ 3
- 0
searx/webapp.py Parādīt failu

@@ -103,6 +103,9 @@ def index():
103 103
     Supported outputs: html, json, csv, rss.
104 104
     """
105 105
 
106
+    if not request.args and not request.form:
107
+        return render('index.html')
108
+
106 109
     try:
107 110
         search = Search(request)
108 111
     except: