[SteemRank] Added more data about authors

in #utopian-io7 years ago (edited)

I updated SteemRank and added the next info about each author:

  • Number of upvotes (it calculates only from posts with pending payout)
  • SBD balance
  • Steem balance
  • Date of the account creation

image.png

Also, @miniature-tiger did give me the advice about depth=0 and now parent_author='' replaced by depth=0. Thanks @miniature-tiger!

If you do not know what is SteemRank — right now it is a rating of authors which is sorted by their pending payout. But the main idea is an analysis of the best parts of Steemit. The project was developed with SteemSQL Wrapper API.

Now I use the next SQL:

SELECT TOP 50
    Comments.author,
    SUM(Comments.pending_payout_value) as pending_payout,
    COUNT(*) as posts,
    SUM(Comments.net_votes) as upvotes,
    Accounts.sbd_balance,
    Accounts.balance,
    Accounts.created
FROM
    Comments
    INNER JOIN Accounts ON Comments.author = Accounts.name
WHERE
    Comments.depth=0 AND
    Comments.created BETWEEN GETDATE()-7 AND GETDATE()
GROUP BY Comments.author, Accounts.sbd_balance, Accounts.balance, Accounts.created
ORDER BY SUM(Comments.pending_payout_value) DESC

My commit

image



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @emptyname I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.16
TRX 0.16
JST 0.032
BTC 59615.63
ETH 2524.32
USDT 1.00
SBD 2.44