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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user