home
·
contact
·
privacy
projects
/
stable_plom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26f9bd5
)
browser.py: fix order of diversities in … of … listing.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 23 Sep 2024 05:09:14 +0000
(07:09 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 23 Sep 2024 05:09:14 +0000
(07:09 +0200)
browser.py
patch
|
blob
|
history
diff --git
a/browser.py
b/browser.py
index fe09e71588fd6439d27e0a77a8668dead8402cc0..8c5fa26e643bdb7677a781122c664e595ad85a75 100755
(executable)
--- 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):