Skip to content

Commit

Permalink
revise it
Browse files Browse the repository at this point in the history
  • Loading branch information
Guanghong Zheng committed Nov 11, 2024
1 parent b19458f commit 293a188
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SSE-Lab2
Submodule SSE-Lab2 updated from 1642d0 to 1b6659
3 changes: 2 additions & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def hello_world():


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

0 comments on commit 293a188

Please sign in to comment.