Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choose a PromptEntry at random rather than random-ish. #155

Merged
merged 1 commit into from
Dec 24, 2015

Conversation

r00k
Copy link
Contributor

@r00k r00k commented Dec 23, 2015

As discussed in #154, our current system for choosing which entry to include
with the daily prompt penalizes consistent writers.

This commit makes our selection of previous entry truly random.

Fixes #154

@r00k
Copy link
Contributor Author

r00k commented Dec 24, 2015

I believe CI is failing for some reason unrelated to this change. My suite is green locally.

entries.by_date.where(date: dates).last
end

def random
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍 🔥

@chrishunt
Copy link
Member

Everything passes on my machine as well. Looks great to me! 👍 ⛵

As discussed in #154, our current system for choosing which entry to
include with the daily prompt penalizes consistent writers.

This commit makes our selection of previous entry truly random.

Fixes #154
@r00k r00k force-pushed the bo-choose-prompt-at-random branch from de6be14 to 93fa873 Compare December 24, 2015 15:29
@r00k r00k merged commit 93fa873 into master Dec 24, 2015
@r00k r00k deleted the bo-choose-prompt-at-random branch December 24, 2015 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants