You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
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])"""
The text was updated successfully, but these errors were encountered: