-
Notifications
You must be signed in to change notification settings - Fork 52
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
change ordering, include distributions in search, include totalcount #1661
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1661 +/- ##
==========================================
- Coverage 94.89% 94.89% -0.01%
==========================================
Files 555 555
Lines 23435 23545 +110
==========================================
+ Hits 22239 22342 +103
- Misses 1196 1203 +7
Continue to review full report at Codecov.
|
Since moving to WSL2, I am using VS code and I haven't got black and flake8 configured. Will try to get that back in place and recommit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made a few suggestions that should reduce the number of database calls for this as every time you call queryset.count()
the query is executed. Please check if it works as intended when they're all applied.
What I've changed it to - we store the count of the unfiltered queryset on the view object in L30, then filter it in the rest of get_queryset
, then lookup the number again in L126.
Co-authored-by: James <[email protected]>
Co-authored-by: James <[email protected]>
Co-authored-by: James <[email protected]>
Co-authored-by: James <[email protected]>
Did this work? I was making the suggestions blind. Also, did you get pre-commit set back up? |
The code worked, checked it before the holidays, but I am having trouble with pre-commit. If I understand correctly it isn't available for Ubuntu 20.04. So after some googling figured out I could use snap for it. But using |
The best way is via pip, they provide a single command to set everything up
|
No description provided.