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

Improved stats calculations

parent e49be846
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
...@@ -245,12 +245,6 @@ class Blocks: ...@@ -245,12 +245,6 @@ class Blocks:
for k, v in vote_ops.items(): for k, v in vote_ops.items():
Votes.effective_comment_vote_op(v, cls._head_block_date) Votes.effective_comment_vote_op(v, cls._head_block_date)
op_type = 'effective_comment_vote_operation'
if op_type in cls.ops_stats:
cls.ops_stats[op_type] += 1
else:
cls.ops_stats[op_type] = 1
if comment_payout_ops: if comment_payout_ops:
comment_payout_stats = Posts.comment_payout_op(comment_payout_ops, cls._head_block_date) comment_payout_stats = Posts.comment_payout_op(comment_payout_ops, cls._head_block_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