From 8b5fcce1c7d25d85e7f1d25bed7a8446b2f4ed76 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sat, 28 Nov 2020 18:28:05 +1100 Subject: [PATCH] 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 --- series.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/series.py b/series.py index 07190a7..e87b7b0 100644 --- a/series.py +++ b/series.py @@ -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)