[Beem] [Version: 0.20.20] While trying to read Comment/Post creation time, beem throws an ValueError by sourovafrin

View this thread on steempeak.com
· @sourovafrin · (edited)
$15.08
[Beem] [Version: 0.20.20] While trying to read Comment/Post creation time, beem throws an ValueError
#### Project Information

* Repository: https://github.com/holgern/beem

* Project Name: Beem

#### Expected behavior

```
from beem.comment import Comment
from beem.steem import Steem
stm=Steem()
c = Comment("@azizbd/ktblk-monthly-food-gifts-for-underprivileged-families",stm)
post_date = c["created"]
print(post_date)
```

This piece of code should print the post date and time of that specified post

#### Actual behavior

While trying to print the time and date of the post, beem throws a `ValueError`. Below the log is provided:
```
vote[p] = int(vote.get(p, "0"))
ValueError: invalid literal for int() with base 10: '39.68'
```
#### How to reproduce

```
from beem.comment import Comment
from beem.steem import Steem
stm=Steem()
c = Comment("@azizbd/ktblk-monthly-food-gifts-for-underprivileged-families",stm)
post_date = c["created"]
print(post_date)
```

- Install latest version of beem.

- Run the upper codes, it will throw the mentioned error.


#### Possible fix

I have created a [PR](https://github.com/holgern/beem/pull/174). Implementing this, solved the issue for me. While testing to check if the change solves the issue or not, you must change same like the PR.

#### Recording Of The Bug

https://youtu.be/VY25NonX3kg

- Python 3.6

- Beem version 0.20.20

- Operating system: Ubuntu 18.06

#### Github Account
https://github.com/sourovafrin 
##### Github issue
https://github.com/holgern/beem/issues/175
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 97 others
properties (23)
post_id73,536,293
authorsourovafrin
permlinkbeem-version-0-20-20-while-trying-to-read-comment-post-creation-time-beem-throws-an-valueerror
categoryutopian-io
json_metadata{"tags":["utopian-io","bug-hunting","beem"],"image":["https:\/\/img.youtube.com\/vi\/VY25NonX3kg\/0.jpg"],"links":["https:\/\/github.com\/holgern\/beem","https:\/\/github.com\/holgern\/beem\/pull\/174","https:\/\/youtu.be\/VY25NonX3kg","https:\/\/github.com\/sourovafrin","https:\/\/github.com\/holgern\/beem\/issues\/175"],"app":"steemit\/0.1","format":"markdown"}
created2019-04-22 13:54:21
last_update2019-04-22 14:30:12
depth0
children8
net_rshares29,889,358,832,330
last_payout2019-04-29 13:54:21
cashout_time1969-12-31 23:59:59
total_payout_value11.486 SBD
curator_payout_value3.593 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,425
author_reputation186,685,725,170,609
root_title"[Beem] [Version: 0.20.20] While trying to read Comment/Post creation time, beem throws an ValueError"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (161)
@bdcommunity ·
<center>

![](https://i.imgur.com/1i3fmz1.png)

**Hi @sourovafrin, your post has been upvoted by @bdcommunity and the trail!**

If you want to support us, please consider following our [curation trail](https://steemit.com/bdcommunity/@bdcommunity/how-to-follow-bdcommunity-curation-trail), setting us as your [witness proxy](https://app.steemconnect.com/sign/account-witness-proxy?proxy=bdcommunity), or delegating STEEM POWER to us.

|    |    |    |    |    |    |    |
|----|----|----|----|----|----|----|
|[20 SP](https://app.steemconnect.com/sign/delegateVestingShares?&delegatee=bdcommunity&vesting_shares=20%20SP)|[50 SP](https://app.steemconnect.com/sign/delegateVestingShares?&delegatee=bdcommunity&vesting_shares=50%20SP)|[100 SP](https://app.steemconnect.com/sign/delegateVestingShares?&delegatee=bdcommunity&vesting_shares=100%20SP)|[200 SP](https://app.steemconnect.com/sign/delegateVestingShares?&delegatee=bdcommunity&vesting_shares=200%20SP)|[300 SP](https://app.steemconnect.com/sign/delegateVestingShares?&delegatee=bdcommunity&vesting_shares=300%20SP)|[500 SP](https://app.steemconnect.com/sign/delegateVestingShares?&delegatee=bdcommunity&vesting_shares=500%20SP)|[1000 SP](https://app.steemconnect.com/sign/delegateVestingShares?&delegatee=bdcommunity&vesting_shares=1000%20SP)|

**JOIN US ON**

[![](https://i.imgur.com/EoOj7g8.png)](https://steemit.com/@bdcommunity) [![](https://i.imgur.com/7hDxYND.png)](https://discord.gg/6zWpukW)

</center>
properties (22)
post_id73,562,467
authorbdcommunity
permlinkre-sourovafrin-beem-version-0-20-20-while-trying-to-read-comment-post-creation-time-beem-throws-an-valueerror-20190423t013227140z
categoryutopian-io
json_metadata{}
created2019-04-23 01:32:27
last_update2019-04-23 01:32:27
depth1
children0
net_rshares0
last_payout2019-04-30 01:32:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,468
author_reputation87,319,474,038,977
root_title"[Beem] [Version: 0.20.20] While trying to read Comment/Post creation time, beem throws an ValueError"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steem-plus ·
SteemPlus upvote
Hi, @sourovafrin!

You just got a **0.41%** upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in [here](https://steemit.com/@steem-plus) to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.
properties (22)
post_id73,591,611
authorsteem-plus
permlinkbeem-version-0-20-20-while-trying-to-read-comment-post-creation-time-beem-throws-an-valueerror---vote-steemplus
categoryutopian-io
json_metadata{}
created2019-04-23 13:48:30
last_update2019-04-23 13:48:30
depth1
children0
net_rshares0
last_payout2019-04-30 13:48:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length438
author_reputation247,995,867,762,997
root_title"[Beem] [Version: 0.20.20] While trying to read Comment/Post creation time, beem throws an ValueError"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@holger80 ·
$0.13
Thanks for the bug report. I fixed the problem in commit:
https://github.com/holgern/beem/commit/231187235d33983721a20c972a96ffd9101ec360#diff-0f7dc83e2e0cdd9d343c46de9a1437cb
πŸ‘  , ,
properties (23)
post_id73,692,238
authorholger80
permlinkre-sourovafrin-beem-version-0-20-20-while-trying-to-read-comment-post-creation-time-beem-throws-an-valueerror-20190425t083142613z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https:\/\/github.com\/holgern\/beem\/commit\/231187235d33983721a20c972a96ffd9101ec360#diff-0f7dc83e2e0cdd9d343c46de9a1437cb"],"app":"steemit\/0.1"}
created2019-04-25 08:31:45
last_update2019-04-25 08:31:45
depth1
children0
net_rshares265,286,001,257
last_payout2019-05-02 08:31:45
cashout_time1969-12-31 23:59:59
total_payout_value0.099 SBD
curator_payout_value0.033 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length175
author_reputation183,372,131,550,888
root_title"[Beem] [Version: 0.20.20] While trying to read Comment/Post creation time, beem throws an ValueError"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (3)
@fego ·
$9.73
Hi @sourovafrin, thanks for making this contribution. 

I see the PO has fixed the aforementioned bug in this commit - https://github.com/holgern/beem/commit/231187235d33983721a20c972a96ffd9101ec360#diff-0f7dc83e2e0cdd9d343c46de9a1437cb

I like that you made an attempt to fix the issue, although it wasn't altogether the best solution since the PO did not merge your pull request. I look forward to more of your contributions.

Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/5/3-1-1-2-2-2-).

---- 
Need help? Chat with us on [Discord](https://discord.gg/uTyJkNm).

[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id73,694,815
authorfego
permlinkre-sourovafrin-beem-version-0-20-20-while-trying-to-read-comment-post-creation-time-beem-throws-an-valueerror-20190425t094505246z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["sourovafrin"],"links":["https:\/\/github.com\/holgern\/beem\/commit\/231187235d33983721a20c972a96ffd9101ec360#diff-0f7dc83e2e0cdd9d343c46de9a1437cb","https:\/\/join.utopian.io\/guidelines","https:\/\/review.utopian.io\/result\/5\/3-1-1-2-2-2-","https:\/\/discord.gg\/uTyJkNm","https:\/\/join.utopian.io\/"],"app":"steemit\/0.1"}
created2019-04-25 09:45:06
last_update2019-04-25 09:45:06
depth1
children1
net_rshares19,586,487,452,964
last_payout2019-05-02 09:45:06
cashout_time1969-12-31 23:59:59
total_payout_value7.411 SBD
curator_payout_value2.321 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length875
author_reputation168,957,617,866,077
root_title"[Beem] [Version: 0.20.20] While trying to read Comment/Post creation time, beem throws an ValueError"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (21)
@utopian-io ·
Thank you for your review, @fego! Keep up the good work!
properties (22)
post_id73,800,591
authorutopian-io
permlinkre-re-sourovafrin-beem-version-0-20-20-while-trying-to-read-comment-post-creation-time-beem-throws-an-valueerror-20190425t094505246z-20190427t140133z
categoryutopian-io
json_metadata{"app":"beem\/0.20.17"}
created2019-04-27 14:01:36
last_update2019-04-27 14:01:36
depth2
children0
net_rshares0
last_payout2019-05-04 14:01:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length56
author_reputation152,913,012,544,965
root_title"[Beem] [Version: 0.20.20] While trying to read Comment/Post creation time, beem throws an ValueError"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steem-ua ·
#### Hi @sourovafrin!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
post_id73,694,877
authorsteem-ua
permlinkre-beem-version-0-20-20-while-trying-to-read-comment-post-creation-time-beem-throws-an-valueerror-20190425t094739z
categoryutopian-io
json_metadata{"app":"beem\/0.20.19"}
created2019-04-25 09:47:39
last_update2019-04-25 09:47:39
depth1
children0
net_rshares0
last_payout2019-05-02 09:47:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length290
author_reputation23,203,609,903,979
root_title"[Beem] [Version: 0.20.20] While trying to read Comment/Post creation time, beem throws an ValueError"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@utopian-io ·
Hey, @sourovafrin!

**Thanks for contributing on Utopian**.
We’re already looking forward to your next contribution!

**Get higher incentives and support Utopian.io!**
 Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via [SteemPlus](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
post_id73,714,439
authorutopian-io
permlinkre-beem-version-0-20-20-while-trying-to-read-comment-post-creation-time-beem-throws-an-valueerror-20190425t175829z
categoryutopian-io
json_metadata{"app":"beem\/0.20.17"}
created2019-04-25 17:58:30
last_update2019-04-25 17:58:30
depth1
children0
net_rshares0
last_payout2019-05-02 17:58:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length593
author_reputation152,913,012,544,965
root_title"[Beem] [Version: 0.20.20] While trying to read Comment/Post creation time, beem throws an ValueError"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@bdvoter ·
$0.02
You got a 45.81% upvote from @bdvoter courtesy of @sourovafrin!

**Delegate your SP to us at @bdvoter and earn daily 100% profit share for your delegation & rewards will be distributed automatically daily.**

[500 SP](https://v2.steemconnect.com/sign/delegateVestingShares?&delegatee=bdvoter&vesting_shares=500%20SP), [1000 SP](https://v2.steemconnect.com/sign/delegateVestingShares?&delegatee=bdvoter&vesting_shares=1000%20SP), [2500 SP](https://v2.steemconnect.com/sign/delegateVestingShares?&delegatee=bdvoter&vesting_shares=2500%20SP), [5000 SP](https://v2.steemconnect.com/sign/delegateVestingShares?&delegatee=bdvoter&vesting_shares=5000%20SP), [10000 SP](https://v2.steemconnect.com/sign/delegateVestingShares?&delegatee=bdvoter&vesting_shares=10000%20SP).

If you are from Bangladesh and looking for community support, Join [BDCommunity Discord Server](https://discord.gg/yEPcKTq) & If you want to support our service, please set your witness proxy to [BDCommunity](https://steemconnect.com/sign/account-witness-proxy?proxy=bdcommunity).
πŸ‘  
πŸ‘Ž  
properties (23)
post_id73,731,340
authorbdvoter
permlinkre-sourovafrin-beem-version-0-20-20-while-trying-to-read-comment-post-creation-time-beem-throws-an-valueerror-20190426t022117978z
categoryutopian-io
json_metadata{}
created2019-04-26 02:21:18
last_update2019-04-26 02:21:18
depth1
children0
net_rshares40,850,921,937
last_payout2019-05-03 02:21:18
cashout_time1969-12-31 23:59:59
total_payout_value0.015 SBD
curator_payout_value0.004 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,046
author_reputation5,666,740,605,819
root_title"[Beem] [Version: 0.20.20] While trying to read Comment/Post creation time, beem throws an ValueError"
beneficiaries[]
max_accepted_payout100,000.000 SBD
percent_steem_dollars0
author_curate_reward""
vote details (2)