-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: list indices must be integers, not str #3
Comments
Thanks for finding this! I'll have to step through when I have some more time. As always, PRs are accepted. |
Having similar issues with the latest commits available, any thoughts? Normal Mode Debug Mode Connected to pydev debugger (build 181.4668.75) Process finished with exit code 1 |
Yes, it is still in latest master. |
Sorting the buy and sell orders by time
Traceback (most recent call last):
File "CoinTaxes.py", line 166, in
main()
File "CoinTaxes.py", line 135, in main
buys_sorted = sorted(buys, key=lambda buy_order: buy_order['order_time'])
File "CoinTaxes.py", line 135, in
buys_sorted = sorted(buys, key=lambda buy_order: buy_order['order_time'])
TypeError: list indices must be integers, not str
I suspect it was caused by fix_orders() because it appends lists instead of objects into buys and sells lists.
The text was updated successfully, but these errors were encountered: