aguerradelgado / goodreads_webscraper_2

0 stars 0 forks source link

program not running for 1/3 members #24

Closed aguerradelgado closed 1 year ago

aguerradelgado commented 1 year ago

image

aguerradelgado commented 1 year ago

has been working before for, but since latest changes, error appearing. Exception on /result

aguerradelgado commented 1 year ago

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

image

have tried five books never previously searched, only this error comes up now

aguerradelgado commented 1 year ago

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

patriciaandreica commented 1 year ago
Screen Shot 2022-12-04 at 3 47 26 PM

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?

jsgreenwell commented 1 year ago

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).