I’m working on index part for two days now and I’m keep getting AttributeError: 'RuntimeError' object has no attribute 'name'. I changed things around but still the same error. Please, help me.
CS50 Stack Exchange is a question and answer site for students of Harvard University's CS50. It only takes a minute to sign up.Sign up to join this community
Ignore that last error, it's caused by the error above.
You should not store stocks in
users table, but in another table. Error message suggests that even though you specify "users" table, it does not have these fields.
cash in your case is a list with one element, a dict with a property "cash". So the number you meant would not be