From afa1921968cf245cbe2da168526efc3130b72c2d Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 2 Jan 2021 14:33:01 -0800 Subject: [PATCH] Deduplicates search results --- bookwyrm/connectors/self_connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/connectors/self_connector.py b/bookwyrm/connectors/self_connector.py index 7d0298be..921f517f 100644 --- a/bookwyrm/connectors/self_connector.py +++ b/bookwyrm/connectors/self_connector.py @@ -36,7 +36,7 @@ class Connector(AbstractConnector): or results search_results = [] - for book in results[:10]: + for book in set(results[:10]): search_results.append( self.format_search_result(book) )