From: Christian Heller Date: Mon, 23 Sep 2024 05:09:14 +0000 (+0200) Subject: browser.py: fix order of diversities in … of … listing. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/%7B%7Bdb.prefix%7D%7D/templates?a=commitdiff_plain;h=b0f8dc03b6746f2af639c62358608f68df4eeeab;p=stable_plom browser.py: fix order of diversities in … of … listing. --- diff --git a/browser.py b/browser.py index fe09e71..8c5fa26 100755 --- a/browser.py +++ b/browser.py @@ -390,8 +390,8 @@ class Gallery: def get_diversities_for(self, sort_attr): """Return how many diff. values for sort_attr in (un-)filtered store""" diversities = [0, 0] - for i, store in enumerate([self.dir_entries, - self.dir_entries_filtered_sorted]): + for i, store in enumerate([self.dir_entries_filtered_sorted, + self.dir_entries]): values = set() for item in store: if isinstance(item, ImgItem):