Closed aguerradelgado closed 1 year ago
has been working before for, but since latest changes, error appearing. Exception on /result
when i run again I get the same error but different values in the result, this one just description and tbr, previous listed rating, books_give, titiles_give
have tried five books never previously searched, only this error comes up now
this issue was resolved by adding in session["tbr} = [] in def login. There was nothing being passed to the render previously while in GET so error
I get this error which no one else is getting. Making them as globals solves the problem (though that is bad practice),but I am also just confused why no one else gets that error. Could be the requests not going through on my part?
Making them as globals solves the problem
This is because you need to pass the variable that is being reference to the function over using a global. Same as C++ and Java when you need a variable's value you pass it as a reference to the function for use/updating.
At a guess, your getting this error because you didn't update/fetch the code so your slightly out of date or because of cacheing (as browsers' heavily cache all content for performance).