Browse Source

Text Search and Filters don't work at the same time in the web UI #1316 (#1333)

Nick Sweeting 1 year ago
parent
commit
ce42472732
1 changed files with 1 additions and 1 deletions
  1. 1 1
      archivebox/core/mixins.py

+ 1 - 1
archivebox/core/mixins.py

@@ -10,7 +10,7 @@ class SearchResultsAdminMixin:
 
 
         search_term = search_term.strip()
         search_term = search_term.strip()
         if not search_term:
         if not search_term:
-            return qs, use_distinct
+            return qs.distinct(), use_distinct
         try:
         try:
             qsearch = query_search_index(search_term)
             qsearch = query_search_index(search_term)
             qs = qs | qsearch
             qs = qs | qsearch