소스 검색

[fix] unused var removed

asciimoo 11 년 전
부모
커밋
f48bc8b4e8
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0
    2
      searx/webapp.py

+ 0
- 2
searx/webapp.py 파일 보기

@@ -65,7 +65,6 @@ def index():
65 65
         request_data = request.args
66 66
     if not request_data.get('q'):
67 67
         return render('index.html')
68
-    selected_engines = []
69 68
     selected_categories = []
70 69
     for pd_name,pd in request_data.items():
71 70
         if pd_name.startswith('category_'):
@@ -81,7 +80,6 @@ def index():
81 80
     query = request_data['q'].encode('utf-8')
82 81
     results = search(query, request, selected_categories)
83 82
     if request_data.get('format') == 'json':
84
-        # TODO HTTP headers
85 83
         return Response(json.dumps({'query': query, 'results': results}), mimetype='application/json')
86 84
     template = render('results.html'
87 85
                         ,results=results