Closed wynnsu closed 8 years ago
It would be great if you could print out the stock.symbol variable before the append statement and the if statement. If stock.symbol is indeed just 'G', perhaps the package is fine and your django program ignores the previous part of the string.
The 'Symbol' column in Review screenshot is the value of stock.symbol. And that appears to be 'GOOG'.
Hi hongtaocai,
Problem solved by using str() function. Still don't know where it went wrong but thanks all the same:)
In Django view: Result: When calling getQuotes() with object attribute (stock.symbol), the function returns the result of getQuotes('G') which should be getQuotes('GOOG'). Same thing with 'FB', 'AAPL' etc. Only the last letter was passed.