mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
fixes #1193 Bug: Search sometimes shows the same snapshot twice
This commit is contained in:
commit
22eff07a11
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ class PublicIndexView(ListView):
|
||||||
qs = qs | query_search_index(query)
|
qs = qs | query_search_index(query)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print(f'[!] Error while using search backend: {err.__class__.__name__} {err}')
|
print(f'[!] Error while using search backend: {err.__class__.__name__} {err}')
|
||||||
return qs
|
return qs.distinct()
|
||||||
|
|
||||||
def get(self, *args, **kwargs):
|
def get(self, *args, **kwargs):
|
||||||
if PUBLIC_INDEX or self.request.user.is_authenticated:
|
if PUBLIC_INDEX or self.request.user.is_authenticated:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue