enter image description here
For this code as you can see I was forced to, after taking the argument passed into this function as “book”, enter that argument back into the template and then retrieve it again through a form to use it to modify my library. If I tried to use the “book” var it would return “None” once request.method == “POST”. I’m just trying to understand why this is necessary.
I tried to pass the book var into my db.session.execute but anywhere below the if statement it would return none, while above it book would return what was expected of it