We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffe56f7 commit 2c32365Copy full SHA for 2c32365
1 file changed
app.py
@@ -8,7 +8,7 @@
8
@app.route("/search")
9
def handle_search():
10
query = request.args.get("q")
11
- engine = request.args.get("engine", "google").lower()
+ engine = request.args.get("engines", "duckduckgo").lower()
12
13
if not query:
14
return jsonify({"error": "Missing query parameter 'q'"}), 400
@@ -57,3 +57,4 @@ def index():
57
58
if __name__ == "__main__":
59
app.run(port=5000, debug=False, threaded=True)
60
+
0 commit comments