Skip to content

Commit

Permalink
revise it v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Guanghong Zheng committed Nov 11, 2024
1 parent 293a188 commit 16eaa02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def hello_world():

@app.route("/query", methods=["GET"])
def query():
q = request.args.get("query")
if q == "dinosaurs":
query = request.args.get("q")
if query == "dinosaurs":
return "Dinosaurs ruled the Earth 200 million years ago"
else:
return "Unknown"
Expand Down

0 comments on commit 16eaa02

Please sign in to comment.