X-Git-Url: http://git.treefish.org/~alex/photosort.git/blobdiff_plain/c14b3934d3a602d806e68c2f92f05ad4dd115a54..7027dd05f6a97b7d0537cb393e58080b16a71ec5:/src/locator.py?ds=sidebyside diff --git a/src/locator.py b/src/locator.py index ff74e0c..3b866f8 100644 --- a/src/locator.py +++ b/src/locator.py @@ -30,7 +30,8 @@ class Locator: else: self._remove_from_cache(name, size, meta_time) else: - file_dir = misc.find_file(name, size, meta_time) + file_dir = misc.find_file(self._base_dir, name, size, meta_time, + self._exclude_dir) if file_dir: self._clean_cache() self._add_to_cache(name, size, meta_time, file_dir) @@ -61,7 +62,7 @@ class Locator: def _clean_cache(self): c = self._conn.cursor() - c.execute("DELETE FROM cache WHERE access_time