The moderation payment script has been revised to be more consistent regardless of how and when it's ran. The script is ran in a more intelligent way now when gathering statistics and to overall be more reliable.
Dates are now rounded to Thursday midnight UTC. If Thursday has passed, it will round to last Thursday, this is to ensure calculations are not made in the future and to ensure payments are made exactly to the 1 week mark, no more fluctuations. For example, if the day is currently Monday, it will round back in time to Thursday. This will guarantee consistent and accurate results in all the statistics being broadcasted and has some other advantages mentioned below.
Broadcasts are only made if the comment or vote isn't in the blockchain. For moderators that have bandwidth issues, this will allow the script to run more often than once without draining the voting power of the Utopian bot or needlessly broadcasting comment edits. This behavior can be overridden when running with
force
which will cause the script to always broadcast.The total moderated stats is now calculated using the rounded date and excludes the pending posts. Previously it relied on the data in the database that gets updated on a cron. The statistical data resulted in inconsistent results.
Pull Request: https://github.com/utopian-io/api.utopian.io/pull/105
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Thanks for the update!
Great update, thanks!
Another amazing contribution brother!
You've got upvoted by
Utopian-1UP
!You can give up to ten 1UP's to Utopian posts every day after they are accepted by a Utopian moderator and before they are upvoted by the official @utopian-io account. Install the @steem-plus browser extension to use 1UP. By following the 1UP-trail using SteemAuto you support great Utopian authors and earn high curation rewards at the same time.
1UP is neither organized nor endorsed by Utopian.io!
Hey @samrg472 I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
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
Awesome!
Amazing...