remove the code to deal with moving books in series, its better placed where we draw the books in the series anyway - in main.py

This commit is contained in:
2020-11-28 18:28:05 +11:00
parent 6bcbaca1ee
commit 8b5fcce1c7

View File

@@ -56,12 +56,6 @@ def series(id):
### DDP: should this be request.form or request.values?
alert="Success"
series_form = SeriesForm(request.form)
if request.method == 'POST':
if 'move_button' in request.form:
print( 'maybe we are moving a book up or down in series, we pressed: ' + request.form['move_button'] )
dir, id = request.form['move_button'].split('-')
print( "dir="+dir)
print( "id="+id)
if request.method == 'POST' and series_form.validate_on_submit():
id = request.form['id']
series = Series.query.get(id)