Skip to content
Snippets Groups Projects
Commit 1c77e692 authored by Mariusz Trela's avatar Mariusz Trela Committed by Mariusz Trela
Browse files

The variable `pending_payout` is set to zero only when `comment_reward_operation` occured

parent 99d85611
No related branches found
No related tags found
4 merge requests!456Release candidate v1 24,!230Setup monitoring with pghero,!135Enable postgres monitoring on CI server,!61Issue #47 - test database_api get_payout_stats fail
...@@ -270,6 +270,10 @@ class Posts: ...@@ -270,6 +270,10 @@ class Posts:
total_payout_value = value['total_payout_value'] total_payout_value = value['total_payout_value']
curator_payout_value = value['curator_payout_value'] curator_payout_value = value['curator_payout_value']
beneficiary_payout_value = value['beneficiary_payout_value'] beneficiary_payout_value = value['beneficiary_payout_value']
payout = sum([ sbd_amount(total_payout_value), sbd_amount(curator_payout_value) ])
pending_payout = 0
if author is None: if author is None:
author = value['author'] author = value['author']
permlink = value['permlink'] permlink = value['permlink']
...@@ -290,10 +294,6 @@ class Posts: ...@@ -290,10 +294,6 @@ class Posts:
author = value['author'] author = value['author']
permlink = value['permlink'] permlink = value['permlink']
if ( total_payout_value is not None and curator_payout_value is not None ):
payout = sum([ sbd_amount(total_payout_value), sbd_amount(curator_payout_value) ])
pending_payout = 0
#Calculations of all dates #Calculations of all dates
if ( is_paidout is not None ): if ( is_paidout is not None ):
payout_at = date payout_at = date
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment