Skip to content
Snippets Groups Projects
Commit ed18fce9 authored by Minhao Qiu's avatar Minhao Qiu
Browse files

update

parent 53aa1a6f
Branches
Tags
No related merge requests found
...@@ -50,3 +50,5 @@ def flight(flight_id): ...@@ -50,3 +50,5 @@ def flight(flight_id):
return render_template("error.html", message="No such flight") return render_template("error.html", message="No such flight")
# if flight is not None, return all the information from the flights # if flight is not None, return all the information from the flights
return render_template("flight.html", flight=flight) return render_template("flight.html", flight=flight)
import requests
"""
HTTP Methods:
- get : retrieve resource
- post : create a new resource
- put : replace a resource
- patch : update a resource
- delete : delete a resource
"""
def main():
res = requests.get("https://www.google.com/")
print(res.text)
if __name__ == "__main__":
main()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment