From b178ba63265e604d0416e3c0cf562c089af086d6 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 17 Aug 2021 11:57:19 -0700 Subject: [PATCH] Removes unneeded list comprehension --- bookwyrm/views/editions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/views/editions.py b/bookwyrm/views/editions.py index 6b9bd3848..8f59d2fe1 100644 --- a/bookwyrm/views/editions.py +++ b/bookwyrm/views/editions.py @@ -36,7 +36,7 @@ class Editions(View): editions = work.editions.order_by("-edition_rank") languages = set( - sum([e for e in editions.values_list("languages", flat=True)], []) + sum(editions.values_list("languages", flat=True), []) ) editions = editions.filter(**filters)