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

Fix math bug in the search page #299

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Fix math bug in the search page #299

wants to merge 4 commits into from

Conversation

jgibson517
Copy link
Contributor

@jgibson517 jgibson517 commented Aug 17, 2024

looks like we were not filtering by comment_end_date causing us to include documents whose commenting period had closed in the "number of docs with more than one comment" stat.

@jgibson517 jgibson517 linked an issue Aug 17, 2024 that may be closed by this pull request
@@ -82,7 +82,8 @@ def search_page(request):

# join docs with comments, only on the docs open for comment
joined_table = (
Document.objects.all()
Document.objects.filter(comment_end_date__gt=today)
Copy link
Contributor

Choose a reason for hiding this comment

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

So just asking, but shouldn't it be greater than or equal to today?

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.

Math bug in figures displayed on search page
2 participants