dPoll development updates

in #utopian-io5 years ago (edited)


See it online at dpoll.xyz, and the source code at github repository.

dPoll is having constant development. Here are the new updates deployed in the last couple of days:

Polls by vote count


We're running weekly contests for the dPoll content creators. In order to @bluerobo pick winners, we have implemented a new view which lists polls by vote count on specific date ranges. This view is kind of hidden at the moment, but it's accessible via /polls_by_vote.

It's also possible to send ?start_time and ?end_time parameters in the query string.

Example:

https://dpoll.xyz/polls_by_vote/?start_time=2018-11-17%2012:42:33&end_time=2018-11-25%2000:00:00

will filter the polls created on that time range. dPollers can use this page to see their placement in the weekly contests.


Related pull requests:

https://github.com/emre/dpoll.xyz/pull/53

Sponsors rewards module


We have initiated two reward sharing payments to our sponsors. The first iteration has a simple flow:

  • Get delegators delegating at least 1 week and calculate their share
  • Get the rewards (in liquid) total
  • Send payments

This flow has some downsides but considering the development time and the sponsor count, it's simplest solution.

Related pull requests:

https://github.com/emre/dpoll.xyz/pull/55
https://github.com/emre/dpoll.xyz/pull/54


Thanks again, to our sponsors making the curation possible.

Fixing the choice order


This was a regression I have introduced at some point which causes the order of choices random after the initial poll creation.

There was a simple one-liner which makes a list unique by casting the list into set and to a list again.

choices = list(set(choices))

However, sets are unordered. Fixed the problem with a simple replacement function:

def remove_duplicates(_list):
  new_list = \[\]
  for element in _list:
    if element not in new_list:
      new_list.append(element)

  return new_list

Related pull requests:
https://github.com/emre/dpoll.xyz/pull/56

Tag management on dPoll interface


@tolgahanuzun introduced tag support. The first iteration was only supporting tag management on the poll creation. We have now tag editing support on our poll editing page.


Related pull requests:
https://github.com/emre/dpoll.xyz/pull/60

Minor updates


Roadmap


  • Achievements and badges
  • Fixing the mobile issues on markdown editor
  • Multiple choice selection (Not %100 decided, yet.)

If you have any ideas, suggestions, or feedbacks you can shoot your ideas at our issues. Also, feel free to join discord server.

Sort:  
  • Great post quality. Code sample, images.
  • I really like you get delegator reward calculation, I may use that.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you for your review, @helo! Keep up the good work!

Not so simple but still one-liner :)
OrderedDict((k, 0) for k in choices).keys()

Thanks for contributing to the dPoll content.

You have been upvoted from our community curation account (@dpoll.curation) in courtesy of This Guy... @bluerobo.

Come, join our community at dPoll discord server.


If you want to support dPoll curation, you can also delegate some steem power. Quick steem connect links to delegate:
50SP | 100SP | 250SP | 500SP

You asking for ideas, I have one:

Automatically publish from user account RESULTS post when poll is finished.

I really like that you keep the project active and developing it further.

I myself use dpoll sometimes on my minecraft server to let people vote for specific topics and I would really like to see votes made outside of dpoll (like on my server) in dpoll. :3

Keep on steeming, you're doing a great job.^^

Hi @emrebeyler!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @emrebeyler!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Birthdaypost !BEER



Hey @emrebeyler, here is a little bit of BEER from @isnochys for you. Enjoy it!

Coin Marketplace

STEEM 0.26
TRX 0.11
JST 0.033
BTC 63811.67
ETH 3092.68
USDT 1.00
SBD 3.86