Currently the return at the end of the Update_Today() function within the client anvil module expects 6 List Objects within the earnings list:
return [earnings[0][1], earnings[1][1], earnings[2][1], earnings[3][1], earnings[4][1], earnings[5][1]]
To Do:
- Use a generator object to return the appropriate list of values:
return [i[1] for i in earnings]
- Rather than using an explicit list of values to accept the returned values from Update_Today() like,
[eth, hnt, xch, xmr] = Update_Today(self), use a list object:
earnLst = Update_Today(self)
- Then to calculate a total, use
total = sum(earnLst)