dPoll development updates


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.

H2
H3
H4
3 columns
2 columns
1 column
10 Comments
Ecency