Nowplaying Statistics

in #utopian-io6 years ago (edited)

Pull Request (link)

Bug Fixes

Issues with validation function

Previously the validation function would simply see if a user was approved in the past, and whitelist that user. This required a manual approval process and that user would now become a permanently approved member of the community. Under the new validation function there are much tighter restrictions on "approval".

As per the rules in the nowplaying contest, one must like the weekly post in order to be qualified for the rewards. This new algorithm will check to make sure that the author has liked the original post and only approve the post if that this the case. So one user who likes the post in week 5 and not in week 6 will no longer be eligible for the reward.

New Features

Statistics

Statistics are key to learning more about a community project like nowplaying, so it is about time we have the basic statistics available. There is currently a Statistics static class that has a general function. This will be expanded upon later. As of now it returns the total number of users, posts, and how many posts belonged to each week. Here is a sample output as of Mon Feb 19.

posts:  268
users:  65
[ 'Week 0 had 1 entries with 1 users and 8 total votes!',
  'Week 1 had 4 entries with 3 users and 40 total votes!',
  'Week 2 had 2 entries with 2 users and 5 total votes!',
  'Week 3 had 15 entries with 15 users and 75 total votes!',
  'Week 4 had 33 entries with 31 users and 176 total votes!',
  'Week 5 had 31 entries with 28 users and 290 total votes!',
  'Week 6 had 66 entries with 44 users and 538 total votes!',
  'Week 7 had 62 entries with 41 users and 520 total votes!',
  'Week 8 had 35 entries with 32 users and 352 total votes!' ]

Get Post

Some newer fields like active_votes and payout have been added to the post object. These fields can be populated by calling getPost on any post that has an author and a permlink. This is used to grab information about who is currently voting on the nowplaying weekly post, but can be used to update older information as well.

Now Playing

Check out the #nowplaying community and bot in action here
image.png



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 @walnut1 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.20
TRX 0.13
JST 0.030
BTC 63793.25
ETH 3410.80
USDT 1.00
SBD 2.59