From 9ce71c396eabe3142c5f587c1d590c2b3352d480 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Mon, 21 May 2012 14:51:12 +0200 Subject: [PATCH 1/1] unsorted listdir in obvious place --- apps/catalogue/helpers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/catalogue/helpers.py b/apps/catalogue/helpers.py index 7b1f44a4..bfc842fc 100644 --- a/apps/catalogue/helpers.py +++ b/apps/catalogue/helpers.py @@ -82,8 +82,10 @@ class GalleryMerger(object): return self.dest files = listdir(self.path(self.dest)) + files.sort() self.dest_size = len(files) files_other = listdir(self.path(self.src)) + files_other.sort() self.src_size = len(files_other) if files and files_other: -- 2.20.1