home · contact · privacy
browser.py: fix order of diversities in … of … listing.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 23 Sep 2024 05:09:14 +0000 (07:09 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 23 Sep 2024 05:09:14 +0000 (07:09 +0200)
browser.py

index fe09e71588fd6439d27e0a77a8668dead8402cc0..8c5fa26e643bdb7677a781122c664e595ad85a75 100755 (executable)
@@ -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):