removed debugs

This commit is contained in:
2020-11-18 19:51:30 +11:00
parent 296ef4c1f7
commit 28d67be19e

View File

@@ -50,7 +50,6 @@ def author(id):
### DDP: should this be request.form or request.values?
alert="Success"
author_form = AuthorForm(request.form)
print( author_form.validate_on_submit() )
if request.method == 'POST' and author_form.validate_on_submit():
id = request.form['id']
author = Author.query.get(id)
@@ -60,7 +59,6 @@ def author(id):
message="Sorry, Deleting unsupported at present"
alert="Danger"
else:
print( "seems to be saving" )
author.firstnames = request.form['firstnames']
author.surname = request.form['surname']
db.session.commit()