Skip to content

Update_Today() Anvil code Expects 6 ListObjects in earnings List #5

@thomaseleff

Description

@thomaseleff

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions