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

Saving only last operation - fix

parent 5a08c921
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
......@@ -127,14 +127,11 @@ class Blocks:
val = {'is_paidout': True, 'author':op_value['author'], 'permlink': op_value['permlink'] } # comment_payout_update_operation implicates is_paidout (is generated only when post is paidout)
if key is not None and val is not None:
if key in comment_payout_ops:
if op_type == 'curation_reward_operation':
comment_payout_ops[ op_type ].append( { key:val } )
if op_type in comment_payout_ops:
if ( key in comment_payout_ops[ op_type ] ) and ( op_type != 'curation_reward_operation' ):
comment_payout_ops[ op_type ][ key ] = val
else:
if key in comment_payout_ops[ op_type ]:
comment_payout_ops[ op_type ][ key ] = val
else:
comment_payout_ops[ op_type ].append( { key:val } )
comment_payout_ops[ op_type ].append( { key:val } )
else:
comment_payout_ops[ op_type ] = [ { key:val } ]
......
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