1
0
Fork 0

Remove duplicates from satellite search results

Fixes https://gitlab.com/librespacefoundation/satnogs/satnogs-db/-/issues/552

Signed-off-by: George Sfoungaris <sfou@libre.space>
spacecruft
George Sfoungaris 2022-10-06 13:41:04 +03:00
parent 24aa35d904
commit aafb7a4c5e
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ def search(request):
queryset=Transmitter.objects.all(),
to_attr='approved_transmitters'
)
)
).distinct()
if results.count() == 1:
return redirect(