swap order of books in series works - still has debugs, and only works on current series, e.g. if you are in a series in a series, it will need you to manually do the same move in both series - I think I wont fix this bit, but we will see

This commit is contained in:
2020-11-28 17:43:03 +11:00
parent 422db5b6aa
commit ae1aba5e1d
3 changed files with 39 additions and 6 deletions

View File

@@ -59,6 +59,9 @@ def series(id):
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)