pow-co / askbitcoin

Ask Bitcoin a Question - Bitcoin AI Ranks the Top Answers
7 stars 5 forks source link

Re-rank Answers Based on Proof of Work for a Given Time Frame #52

Closed derrickhorton closed 1 year ago

derrickhorton commented 1 year ago

Issue is that when a user clicks to view the answers by timeframe, the URL resets and displays the most boosted questions by that timeframe instead.

For example,

Question: "Who is the best Power Ranger?"

Top answers this [Week]

5.0 Red 4.0 Blue 3.0 Yellow 2.0 Pink 1.0 Black

When you click on "Week" to re-align them based on Month, the URL switches over to:

Top Questions this Month

(Instead, what it should do is keep the user on the same page with the question and rearrange the Answers based on the Proof of Work for the given timeframe -- in this case, "Month")

image

image

This screenshot above is what happens now when clicking on "Month" for answers to a question, but that is the wrong behavior.

Instead it should show the answers to that question re-ranked by POW for that time period.

derrickhorton commented 1 year ago

This issue is resolved and now works correctly reliably for weeks.