{"action":"created","issue":{"url":"https://api.github.com/repos/xeroc/python-steem/issues/23","repository_url":"https://api.github.com/repos/xeroc/python-steem","labels_url":"https://api.github.com/repos/xeroc/python-steem/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/xeroc/python-steem/issues/23/comments","events_url":"https://api.github.com/repos/xeroc/python-steem/issues/23/events","html_url":"https://github.com/xeroc/python-steem/issues/23","id":204484576,"number":23,"title":"Voting Power refresh","user":{"login":"ArtGenesis","id":24871740,"avatar_url":"https://avatars.githubusercontent.com/u/24871740?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtGenesis","html_url":"https://github.com/ArtGenesis","followers_url":"https://api.github.com/users/ArtGenesis/followers","following_url":"https://api.github.com/users/ArtGenesis/following{/other_user}","gists_url":"https://api.github.com/users/ArtGenesis/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtGenesis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtGenesis/subscriptions","organizations_url":"https://api.github.com/users/ArtGenesis/orgs","repos_url":"https://api.github.com/users/ArtGenesis/repos","events_url":"https://api.github.com/users/ArtGenesis/events{/privacy}","received_events_url":"https://api.github.com/users/ArtGenesis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-01T02:47:07Z","updated_at":"2017-02-01T14:55:41Z","closed_at":null,"body":"I tried get my Voting Power and always get same value, only when i have voted, Voting Power is changes, for example even if i get 80%, after vote i can get 95%, if VP full recovering\r\n\r\n```\r\nfrom steem.account import Account\r\naccount = Account(\"myAcc\")\r\nacc_vp = account.voting_power()\r\nprint(acc_vp)\r\n```\r\n\r\nOn steemd, Voting Power always change when i open page\r\nSo to get a Voting Power in real-time(like steemd) , i do something like:\r\n\r\n```\r\nfrom steem.account import Account\r\nimport datetime, time\r\n\r\naccount = Account(\"myAcc\")\r\nacc_vp = account.voting_power()\r\nvotime = account.get_account_votes()[-1]['time']  #get last vote time\r\nvot = datetime.datetime.strptime(votime, '%Y-%m-%dT%H:%M:%S')\r\nvot = time.mktime(vot.timetuple())\r\ntnow = datetime.datetime.utcnow().timestamp()\r\n #not for sure about 0.0139, but result like on steemd (in most cases)\r\ndif = (((tnow-vot)/60)* 0.0139)  + acc_vp  \r\nif dif >= 100:\r\n    dif = 100\r\n    print(dif)\r\nelse:\r\n    print(dif)\r\n```\r\nMaybe i do it something wrong, and there are easier method. Thanks!"},"comment":{"url":"https://api.github.com/repos/xeroc/python-steem/issues/comments/276677850","html_url":"https://github.com/xeroc/python-steem/issues/23#issuecomment-276677850","issue_url":"https://api.github.com/repos/xeroc/python-steem/issues/23","id":276677850,"user":{"login":"ArtGenesis","id":24871740,"avatar_url":"https://avatars.githubusercontent.com/u/24871740?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtGenesis","html_url":"https://github.com/ArtGenesis","followers_url":"https://api.github.com/users/ArtGenesis/followers","following_url":"https://api.github.com/users/ArtGenesis/following{/other_user}","gists_url":"https://api.github.com/users/ArtGenesis/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtGenesis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtGenesis/subscriptions","organizations_url":"https://api.github.com/users/ArtGenesis/orgs","repos_url":"https://api.github.com/users/ArtGenesis/repos","events_url":"https://api.github.com/users/ArtGenesis/events{/privacy}","received_events_url":"https://api.github.com/users/ArtGenesis/received_events","type":"User","site_admin":false},"created_at":"2017-02-01T14:55:41Z","updated_at":"2017-02-01T14:55:41Z","body":"Thanks, @Netherdrake, but for me account.refresh() not help in this case, returned same value VP :("}}
{"actor":{"display_login":"ArtGenesis"}}