We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eebbc7c commit c6e083aCopy full SHA for c6e083a
app.py
@@ -36,9 +36,9 @@ def add_book():
36
@app.route("/add/form",methods=['GET','POST'])
37
def add_book_form():
38
if request.method == 'POST':
39
- name = request.args.get('name')
40
- author = request.args.get('author')
41
- published = request.args.get('published')
+ name = request.form.get('name')
+ author = request.form.get('author')
+ published = request.form.get('published')
42
try:
43
book = Book(
44
name = name,
@@ -70,3 +70,4 @@ def get_by_id():
70
71
if __name__ == '__main__':
72
app.run()
73
+postgres://ndjfjdaqecakwt:c4444fec8c566815207a1bda26f921505cf0399df9b29eb25b7944e88bc125e8@ec2-54-225-106-93.compute-1.amazonaws.com:5432/d4iseb498qj31j
0 commit comments