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

Search: show total_results from last query #7101

Merged
merged 3 commits into from
May 21, 2020
Merged

Search: show total_results from last query #7101

merged 3 commits into from
May 21, 2020

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented May 19, 2020

No description provided.

@@ -996,18 +993,21 @@ def get_context_data(self, **kwargs):
project.slug,
)

queries = []
qs = SearchQuery.objects.filter(project=project)
if qs.exists():
Copy link
Member Author

Choose a reason for hiding this comment

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

The below code returns an empty list already, no need to check for it.

@stsewd stsewd requested a review from a team May 19, 2020 18:15
@stsewd stsewd merged commit 204bc43 into master May 21, 2020
@stsewd stsewd deleted the show-last-total branch May 21, 2020 22:27
ericholscher added a commit that referenced this pull request May 26, 2020
This reverts commit 204bc43, reversing
changes made to 0d7901e.
ericholscher added a commit that referenced this pull request May 26, 2020
This reverts commit 204bc43, reversing
changes made to 0d7901e.
agjohnson pushed a commit that referenced this pull request May 26, 2020
ericholscher added a commit that referenced this pull request May 27, 2020
Revert "Merge pull request #7101 from readthedocs/show-last-total"
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