Skip to content
Permalink
Browse files

add api functions for viewing and creating new vote and trail vote rules

* the api allows to delete and edit rules
* It is possible to add a single delayed vote
  • Loading branch information...
holgern committed May 27, 2019
1 parent 6a9f109 commit 897265fa3e7a1f83ca9041e87772fcd470a37343
Showing with 461 additions and 3 deletions.
  1. +2 −2 calc_curation_performance.py
  2. +440 −0 homepage/app.py
  3. +19 −1 stream_blocks.py
@@ -74,7 +74,7 @@
updated_vote_log = []
voteLogTrx.delete_old_logs(14)

for n in range(32):
for n in range(40):
if n < 4:
vote_log = voteLogTrx.get_oldest_log(vote_delay_optimized=True)

@@ -161,7 +161,7 @@
rshares_sum += int(v["rshares"])
total_rshares_sum += int(v["rshares"])
if v["voter"] == vote_log["voter"]:
rshares = int(vote["rshares"])
rshares = int(v["rshares"])
curation_rshares = 0.25 * total_rshares_sum
for vote in activeVotes:
voter_rshares = int(vote["rshares"])

0 comments on commit 897265f

Please sign in to comment.
You can’t perform that action at this time.