Skip to content
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

error #2

Open
kedgaks opened this issue Apr 15, 2018 · 0 comments
Open

error #2

kedgaks opened this issue Apr 15, 2018 · 0 comments

Comments

@kedgaks
Copy link

kedgaks commented Apr 15, 2018

Traceback (most recent call last):
File "<pyshell#4>", line 1, in
t=golos.get_comments('@user/bla-bla')
File "/home/ubu/.local/lib/python3.5/site-packages/piston/steem.py", line 1009, in get_comments
return Post(identifier, steem_instance=self).get_comments()
File "/home/ubu/.local/lib/python3.5/site-packages/piston/post.py", line 181, in get_comments
), reverse=True)
File "/home/ubu/.local/lib/python3.5/site-packages/piston/post.py", line 180, in
x["total_payout_value"]
ValueError: could not convert string to float: '0.000 GBG'

закоментил IF'ы , без них работает:

"""if sort == "total_payout_value":
r = sorted(r, key=lambda x: float(
x["total_payout_value"]
), reverse=True)
elif sort == "total_payout_value":
r = sorted(r, key=lambda x: float(
x["total_payout_value"]
), reverse=True)
else:
r = sorted(r, key=lambda x: x[sort])"""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant