Skip to content

Add option to filter reading stats by year read #10679

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

Merged
merged 6 commits into from
Apr 24, 2025

Conversation

RedJade26
Copy link
Contributor

@RedJade26 RedJade26 commented Apr 15, 2025

Added filter by year dropdown to the "already read" stats page. Fixing a previous PR by using year_breadcrumb_select.html

Closes #10648

Adding dropdown to readinglog stats page so the user can be filtered by year

Technical

Edited the stats GET request in the mybooks.py file to also process the year that each book was read. I also edited the readinglog_stats.html template page to add in the year drop down and properly change the URL endpoint to filter the books.

Testing

docker compose run --rm home make test

tested on my localhost -screenshots below

Screenshot

stats_2025
stats_page

Stakeholders

@cdrini

Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

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

Nice work @RedJade26 ! A few fixes / comments for you, and one small change in requirements. Let me know if you have any questions!

@cdrini cdrini added the Needs: Submitter Input Waiting on input from the creator of the issue/pr [managed] label Apr 23, 2025
@github-actions github-actions bot removed the Needs: Submitter Input Waiting on input from the creator of the issue/pr [managed] label Apr 23, 2025
@cdrini cdrini changed the title readinglog stats dropdown filter Add option to filtering reading stats by year Apr 24, 2025
Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

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

Works like a charm, thank you @RedJade26 !

@cdrini cdrini changed the title Add option to filtering reading stats by year Add option to filter reading stats by year read Apr 24, 2025
@cdrini cdrini merged commit b65fc44 into internetarchive:master Apr 24, 2025
4 checks passed
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.

Allow Reading Stats to filter stats by year
2 participants